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

[Bug][PanelHeader]: Некорректный отступ Image в SimpleCell #7015

Open
MrZillaGold opened this issue Jun 13, 2024 · 3 comments

Comments

@MrZillaGold
Copy link
Contributor

MrZillaGold commented Jun 13, 2024

Описание

Если вложить SimpleCell с Image в before в after PanelHeader, то у Image будет большой отступ справа относительно children SimpleCell.
PanelHeader применяет стили к Image в after не обращая внимания на обертки.

Версия

6.0.0

В каких браузерах воспроизводится проблема?

Chrome

Скриншоты

Снимок экрана 2024-06-14 в 00 30 20 Снимок экрана 2024-06-14 в 00 33 08
@BlackySoul
Copy link
Contributor

@MrZillaGold, кажется, у нас в дизайн-системе не заложена возможность SimpleCell вкладывать в PanelHeader , можешь юзер-кейс подсказать?

@MrZillaGold
Copy link
Contributor Author

MrZillaGold commented Jun 26, 2024

@BlackySoul Это кейс больше не из вк, а из моего пет проекта, хотел засунуть кнопку профиля на десктопе справа PanelHeader, но по итогу решил проблему тем, что Image из before перенес в after, но все равно пришлось добавлять отступ от children SimpleCell, иначе он слипается с картинкой

@MrZillaGold
Copy link
Contributor Author

Снимок экрана 2024-06-26 в 14 51 03

Такую особенность компонента например сейчас используют VK ID, они добавляют chevron сбоку картинки, и кажется что сам отступ для такого кейса валидный, но хочется еще текст отображать

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🗃 Backlog
Development

No branches or pull requests

2 participants