Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Нелинейный отступ в комментариях #82

Open
centralhardware opened this issue Jan 31, 2021 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@centralhardware
Copy link
Contributor

Мб стоит сделать отступ каждого нового уровня вложенности комментариев не одинаковым а логорифмичнским, чтобы не было ситуации когда текст превращается в что то мало читаемое

@jarvis394 jarvis394 added the enhancement New feature or request label Jan 31, 2021
@jarvis394
Copy link
Owner

https://github.com/jarvis394/habra/blob/e8308688420eb52a45527f1d334ea925a50a83a4/src/components/blocks/Comments/Comment.tsx#L129

Можете попробовать сделать это здесь. Сейчас все комментарии имеют отступ по 32 пикселя, максимальный уровень вложенности - 5.

Этот уровень также лучше было бы поднимать в зависимости от размера экрана пользователя.
https://material-ui.com/ru/customization/breakpoints/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants