mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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() {
|
QSize StickerWithBadgePart::countOptimalSize() {
|
||||||
return _sticker.countOptimalSize();
|
_sticker.initDimensions();
|
||||||
|
return { _sticker.maxWidth(), _sticker.minHeight() };
|
||||||
}
|
}
|
||||||
|
|
||||||
QSize StickerWithBadgePart::countCurrentSize(int newWidth) {
|
QSize StickerWithBadgePart::countCurrentSize(int newWidth) {
|
||||||
|
@ -788,7 +789,7 @@ auto GenerateGiveawayStart(
|
||||||
parent,
|
parent,
|
||||||
nullptr,
|
nullptr,
|
||||||
sticker,
|
sticker,
|
||||||
QMargins(0, st::chatGiveawayStickerTop, 0, 0),
|
st::chatGiveawayStickerPadding,
|
||||||
tr::lng_prizes_badge(
|
tr::lng_prizes_badge(
|
||||||
tr::now,
|
tr::now,
|
||||||
lt_amount,
|
lt_amount,
|
||||||
|
@ -925,7 +926,7 @@ auto GenerateGiveawayResults(
|
||||||
parent,
|
parent,
|
||||||
nullptr,
|
nullptr,
|
||||||
sticker,
|
sticker,
|
||||||
QMargins(0, st::chatGiveawayStickerTop, 0, 0),
|
st::chatGiveawayStickerPadding,
|
||||||
tr::lng_prizes_badge(
|
tr::lng_prizes_badge(
|
||||||
tr::now,
|
tr::now,
|
||||||
lt_amount,
|
lt_amount,
|
||||||
|
|
|
@ -1001,6 +1001,7 @@ storyMentionButtonSkip: 5px;
|
||||||
|
|
||||||
chatGiveawayWidth: 292px;
|
chatGiveawayWidth: 292px;
|
||||||
chatGiveawayStickerTop: -16px;
|
chatGiveawayStickerTop: -16px;
|
||||||
|
chatGiveawayStickerPadding: margins(14px, -2px, 14px, 14px);
|
||||||
chatGiveawayWinnersTopSkip: 25px;
|
chatGiveawayWinnersTopSkip: 25px;
|
||||||
chatGiveawayBadgeFont: font(12px bold);
|
chatGiveawayBadgeFont: font(12px bold);
|
||||||
chatGiveawayBadgeTop: 106px;
|
chatGiveawayBadgeTop: 106px;
|
||||||
|
|
Loading…
Add table
Reference in a new issue