Fix webpage layouts with thumbnails.

This commit is contained in:
John Preston 2023-12-02 21:12:36 +04:00
parent e173c727f7
commit fbe93b0afc
1 changed files with 1 additions and 3 deletions

View File

@ -421,9 +421,7 @@ QSize WebPage::countCurrentSize(int newWidth) {
_pixh = (asSponsored ? kSponsoredUserpicLines : linesMax) * lineHeight;
do {
_pixw = asSponsored ? _pixh : articleThumbWidth(_data->photo, _pixh);
auto wleft = asSponsored
? innerWidth - st::webPagePhotoDelta - qMax(_pixw, lineHeight)
: innerWidth;
auto wleft = innerWidth - st::webPagePhotoDelta - qMax(_pixw, lineHeight);
newHeight = siteNameHeight;