Skip to content

Commit

Permalink
Fixed text elision of vote amount in polls with reactions.
Browse files Browse the repository at this point in the history
  • Loading branch information
23rd authored and john-preston committed Mar 8, 2024
1 parent ef474f0 commit 48eb408
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Telegram/SourceFiles/history/view/media/history_view_poll.cpp
Expand Up @@ -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());
}

Expand Down

0 comments on commit 48eb408

Please sign in to comment.