mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix giveaway messages layout.
This commit is contained in:
parent
d1a995a863
commit
7886a2179f
2 changed files with 5 additions and 3 deletions
|
@ -482,7 +482,8 @@ std::unique_ptr<StickerPlayer> StickerWithBadgePart::stickerTakePlayer(
|
|||
}
|
||||
|
||||
QSize StickerWithBadgePart::countOptimalSize() {
|
||||
return _sticker.countOptimalSize();
|
||||
_sticker.initDimensions();
|
||||
return { _sticker.maxWidth(), _sticker.minHeight() };
|
||||
}
|
||||
|
||||
QSize StickerWithBadgePart::countCurrentSize(int newWidth) {
|
||||
|
@ -788,7 +789,7 @@ auto GenerateGiveawayStart(
|
|||
parent,
|
||||
nullptr,
|
||||
sticker,
|
||||
QMargins(0, st::chatGiveawayStickerTop, 0, 0),
|
||||
st::chatGiveawayStickerPadding,
|
||||
tr::lng_prizes_badge(
|
||||
tr::now,
|
||||
lt_amount,
|
||||
|
@ -925,7 +926,7 @@ auto GenerateGiveawayResults(
|
|||
parent,
|
||||
nullptr,
|
||||
sticker,
|
||||
QMargins(0, st::chatGiveawayStickerTop, 0, 0),
|
||||
st::chatGiveawayStickerPadding,
|
||||
tr::lng_prizes_badge(
|
||||
tr::now,
|
||||
lt_amount,
|
||||
|
|
|
@ -1001,6 +1001,7 @@ storyMentionButtonSkip: 5px;
|
|||
|
||||
chatGiveawayWidth: 292px;
|
||||
chatGiveawayStickerTop: -16px;
|
||||
chatGiveawayStickerPadding: margins(14px, -2px, 14px, 14px);
|
||||
chatGiveawayWinnersTopSkip: 25px;
|
||||
chatGiveawayBadgeFont: font(12px bold);
|
||||
chatGiveawayBadgeTop: 106px;
|
||||
|
|
Loading…
Add table
Reference in a new issue