Refactoring modal alignment logic

This commit is contained in:
Leandro Borges Ferreira
2023-02-26 19:02:46 +01:00
parent 4818d094af
commit 009860d96a
4 changed files with 24 additions and 118 deletions
@@ -384,9 +384,9 @@ extension MessageX on Message {
// Quoted message have a smaller font, so it is necessary to reduce the
// size of the multiplier to count for the smaller font.
var multiplier = 1.2;
var multiplier = 0.55;
if (quotedMessage != null) {
multiplier = 1;
multiplier = 0.45;
}
return messageTextLength * (fontSize ?? 1) * multiplier;