Custom Emoji: Adjust sizes (again again) (#2144)
This commit is contained in:
parent
434fa39ad0
commit
48542a360a
@ -41,5 +41,5 @@ export function getCustomEmojiSize(maxEmojisInLine?: number): number | undefined
|
|||||||
// Should be the same as in _message-content.scss
|
// Should be the same as in _message-content.scss
|
||||||
if (maxEmojisInLine > EMOJI_SIZES) return 2.25 * REM;
|
if (maxEmojisInLine > EMOJI_SIZES) return 2.25 * REM;
|
||||||
if (maxEmojisInLine === 1) return 7 * 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;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -738,7 +738,7 @@
|
|||||||
|
|
||||||
@for $i from 1 through 7 {
|
@for $i from 1 through 7 {
|
||||||
&.emoji-only-#{$i} {
|
&.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};
|
--emoji-only-size: #{$size};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user