From 93c6a05f601262eeff219195a200e946e9d3bfc3 Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Fri, 2 Apr 2021 00:21:01 +0300 Subject: [PATCH] Fix position of discussed post on big window width --- Telegram/SourceFiles/history/view/history_view_message.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/view/history_view_message.cpp b/Telegram/SourceFiles/history/view/history_view_message.cpp index 708c4cd8a..3a23a2f9f 100644 --- a/Telegram/SourceFiles/history/view/history_view_message.cpp +++ b/Telegram/SourceFiles/history/view/history_view_message.cpp @@ -2556,7 +2556,9 @@ QRect Message::countGeometry() const { contentWidth = mediaWidth; } } - if (contentWidth < availableWidth && !Core::App().settings().chatWide()) { + if (contentWidth < availableWidth + && (!Core::App().settings().chatWide() + || (commentsRoot && AdaptiveBubbles()))) { if (outbg) { contentLeft += availableWidth - contentWidth; } else if (commentsRoot) {