mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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);
|
_durationWidth = st::msgDateFont->width(_duration);
|
||||||
}
|
}
|
||||||
if (!_openButton.isEmpty()) {
|
if (!_openButton.isEmpty()) {
|
||||||
accumulate_max(
|
const auto w = rect::m::sum::h(st::historyPageButtonPadding)
|
||||||
maxWidth,
|
+ _openButton.maxWidth();
|
||||||
rect::m::sum::h(st::historyPageButtonPadding)
|
if (sponsored) {
|
||||||
+ _openButton.maxWidth());
|
accumulate_max(maxWidth, w);
|
||||||
|
} else {
|
||||||
|
maxWidth += w;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
maxWidth += rect::m::sum::h(padding);
|
maxWidth += rect::m::sum::h(padding);
|
||||||
minHeight += rect::m::sum::v(padding);
|
minHeight += rect::m::sum::v(padding);
|
||||||
|
|
Loading…
Add table
Reference in a new issue