Fix webpage layouts with thumbnails.

This commit is contained in:
John Preston 2023-12-02 21:12:36 +04:00
parent e173c727f7
commit fbe93b0afc

View file

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