From 48eb408fb8f17780925dcafda23e8942a1ea5c29 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Wed, 6 Mar 2024 02:32:18 +0300 Subject: [PATCH] Fixed text elision of vote amount in polls with reactions. --- .../SourceFiles/history/view/media/history_view_poll.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/history/view/media/history_view_poll.cpp b/Telegram/SourceFiles/history/view/media/history_view_poll.cpp index 7e96e068f..82ca69e8f 100644 --- a/Telegram/SourceFiles/history/view/media/history_view_poll.cpp +++ b/Telegram/SourceFiles/history/view/media/history_view_poll.cpp @@ -803,9 +803,11 @@ void Poll::paintInlineFooter( p, left, top, - std::min( - _totalVotesLabel.maxWidth(), - paintw - _parent->bottomInfoFirstLineWidth()), + _parent->data()->reactions().empty() + ? std::min( + _totalVotesLabel.maxWidth(), + paintw - _parent->bottomInfoFirstLineWidth()) + : _totalVotesLabel.maxWidth(), width()); }