Fix unread badge render glitch.

This commit is contained in:
John Preston 2022-11-29 14:04:56 +04:00
parent d89573bab5
commit 8cd5105813

View file

@ -120,7 +120,7 @@ void TopicsView::paint(
auto rect = geometry;
auto skipBig = _jumpToTopic && !context.active;
for (const auto &title : _titles) {
if (rect.width() <= 0) {
if (rect.width() < title.title.style()->font->elidew) {
break;
}
title.title.draw(p, {