From cee29616321918993dc8c955b90a7b570bb60c9c Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Tue, 2 Jan 2024 17:49:41 +0300 Subject: [PATCH] Fixed width of name text in replies with block quote icon. --- Telegram/SourceFiles/history/view/history_view_reply.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/view/history_view_reply.cpp b/Telegram/SourceFiles/history/view/history_view_reply.cpp index 527654d9ad..5830bf0c50 100644 --- a/Telegram/SourceFiles/history/view/history_view_reply.cpp +++ b/Telegram/SourceFiles/history/view/history_view_reply.cpp @@ -732,7 +732,11 @@ void Reply::paint( const auto textw = w - st::historyReplyPadding.left() - st::historyReplyPadding.right(); - const auto namew = textw - previewSkip; + const auto namew = textw + - previewSkip + - (_hasQuoteIcon + ? st::messageTextStyle.blockquote.icon.width() + : 0); auto firstLineSkip = _nameTwoLines ? 0 : previewSkip; if (namew > 0) { p.setPen(!inBubble