WebPage open button doesn't inflate the preview.

This commit is contained in:
John Preston 2025-01-07 13:24:56 +04:00
parent 428e90a844
commit dcb98ce0fb

View file

@ -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);