mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-13 04:37:11 +02:00
Fixed display of preview for sticker packs.
This commit is contained in:
parent
2ae4e15f87
commit
0c21eba1f8
1 changed files with 7 additions and 4 deletions
|
@ -630,10 +630,13 @@ QSize WebPage::countOptimalSize() {
|
|||
_durationWidth = st::msgDateFont->width(_duration);
|
||||
}
|
||||
if (!_openButton.isEmpty()) {
|
||||
accumulate_max(
|
||||
maxWidth,
|
||||
rect::m::sum::h(st::historyPageButtonPadding)
|
||||
+ _openButton.maxWidth());
|
||||
const auto w = rect::m::sum::h(st::historyPageButtonPadding)
|
||||
+ _openButton.maxWidth();
|
||||
if (sponsored) {
|
||||
accumulate_max(maxWidth, w);
|
||||
} else {
|
||||
maxWidth += w;
|
||||
}
|
||||
}
|
||||
maxWidth += rect::m::sum::h(padding);
|
||||
minHeight += rect::m::sum::v(padding);
|
||||
|
|
Loading…
Add table
Reference in a new issue