Avatar: Increase mini text size (#6807)

Co-authored-by: Alexander Zinchuk <alx.zinchuk@gmail.com>
This commit is contained in:
Alexander Zinchuk 2026-03-31 11:29:32 +02:00
parent a06fabd4f3
commit 473f0dd8e3
2 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,10 @@
font-family: var(--font-family-rounded);
}
&.size-mini {
--_font-size: max(calc(var(--_size) / 2 - 2px), 0.625rem);
}
.emoji {
width: var(--_font-size);
height: var(--_font-size);

View File

@ -270,6 +270,7 @@ const Avatar = ({
const fullClassName = buildClassName(
'Avatar',
className,
typeof size === 'string' && `size-${size}`,
peerColorClass,
!peer && text && 'hidden-user',
isSavedMessages && 'saved-messages',