mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
WebPage open button doesn't inflate the preview.
This commit is contained in:
@@ -649,11 +649,7 @@ QSize WebPage::countOptimalSize() {
|
||||
if (!_openButton.isEmpty()) {
|
||||
const auto w = rect::m::sum::h(st::historyPageButtonPadding)
|
||||
+ _openButton.maxWidth();
|
||||
if (sponsored) {
|
||||
accumulate_max(maxWidth, w);
|
||||
} else {
|
||||
maxWidth += w;
|
||||
}
|
||||
accumulate_max(maxWidth, w);
|
||||
}
|
||||
maxWidth += rect::m::sum::h(padding);
|
||||
minHeight += rect::m::sum::v(padding);
|
||||
|
||||
Reference in New Issue
Block a user