From fbe93b0afca4c266533923923046db05ffe3c6f2 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 2 Dec 2023 21:12:36 +0400 Subject: [PATCH] Fix webpage layouts with thumbnails. --- .../SourceFiles/history/view/media/history_view_web_page.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/history/view/media/history_view_web_page.cpp b/Telegram/SourceFiles/history/view/media/history_view_web_page.cpp index b42fca336b..ecd2884dff 100644 --- a/Telegram/SourceFiles/history/view/media/history_view_web_page.cpp +++ b/Telegram/SourceFiles/history/view/media/history_view_web_page.cpp @@ -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;