Estimate size of images to avoid layout shifts (#5192)
This commit is contained in:
@@ -285,7 +285,8 @@ void Emojis::loadEmojiSet()
|
||||
}
|
||||
QString url = urlPrefix + code + ".png";
|
||||
emoji->emote = std::make_shared<Emote>(Emote{
|
||||
EmoteName{emoji->value}, ImageSet{Image::fromUrl({url}, 0.35)},
|
||||
EmoteName{emoji->value},
|
||||
ImageSet{Image::fromUrl({url}, 0.35, {64, 64})},
|
||||
Tooltip{":" + emoji->shortCodes[0] + ":<br/>Emoji"}, Url{}});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user