mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-01 03:50:43 +00:00
Fixed right padding of text in dialogs entries with unread reactions.
This commit is contained in:
parent
9f11c783eb
commit
1a6b6e6084
@ -175,7 +175,6 @@ int PaintWideCounter(
|
||||
bool unreadMuted,
|
||||
bool mentionOrReactionMuted) {
|
||||
const auto initial = availableWidth;
|
||||
auto hadOneBadge = false;
|
||||
if (displayUnreadCounter || displayUnreadMark) {
|
||||
const auto counter = (unreadCount > 0)
|
||||
? QString::number(unreadCount)
|
||||
@ -198,8 +197,6 @@ int PaintWideCounter(
|
||||
unreadTop,
|
||||
st);
|
||||
availableWidth -= badge.width() + st.padding;
|
||||
|
||||
hadOneBadge = true;
|
||||
} else if (displayPinnedIcon) {
|
||||
const auto &icon = active
|
||||
? st::dialogsPinnedIconActive
|
||||
@ -212,8 +209,6 @@ int PaintWideCounter(
|
||||
texttop,
|
||||
fullWidth);
|
||||
availableWidth -= icon.width() + st::dialogsUnreadPadding;
|
||||
|
||||
hadOneBadge = true;
|
||||
}
|
||||
if (displayMentionBadge || displayReactionBadge) {
|
||||
const auto counter = QString();
|
||||
@ -253,7 +248,7 @@ int PaintWideCounter(
|
||||
: st::dialogsUnreadReaction)).paintInCenter(p, badge);
|
||||
availableWidth -= badge.width()
|
||||
+ st.padding
|
||||
+ (hadOneBadge ? st::dialogsUnreadPadding : 0);
|
||||
+ st::dialogsUnreadPadding;
|
||||
}
|
||||
return availableWidth;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user