Custom Emoji: Adjust sizes (again again) (#2144)

This commit is contained in:
Alexander Zinchuk 2022-11-18 02:53:46 +04:00
parent 434fa39ad0
commit 48542a360a
2 changed files with 2 additions and 2 deletions

View File

@ -41,5 +41,5 @@ export function getCustomEmojiSize(maxEmojisInLine?: number): number | undefined
// Should be the same as in _message-content.scss
if (maxEmojisInLine > EMOJI_SIZES) return 2.25 * REM;
if (maxEmojisInLine === 1) return 7 * REM;
return Math.min(7.5 - (maxEmojisInLine * 0.75), 4) * REM;
return Math.min(7.5 - (maxEmojisInLine * 0.75), 5.625) * REM;
}

View File

@ -738,7 +738,7 @@
@for $i from 1 through 7 {
&.emoji-only-#{$i} {
$size: min(7.5 - ($i * 0.75), 4) + rem;
$size: min(7.5 - ($i * 0.75), 5.625) + rem;
--emoji-only-size: #{$size};
}