diff --git a/Telegram/SourceFiles/dialogs/ui/dialogs_layout.cpp b/Telegram/SourceFiles/dialogs/ui/dialogs_layout.cpp index fc911b90f9f1d1..131c10399b5c24 100644 --- a/Telegram/SourceFiles/dialogs/ui/dialogs_layout.cpp +++ b/Telegram/SourceFiles/dialogs/ui/dialogs_layout.cpp @@ -125,8 +125,8 @@ int PaintRightButton(QPainter &p, const PaintContext &context) { .position = QPoint( left + size.height() / 2, top + (st::dialogRowOpenBotHeight - rightButton->text.minHeight()) / 2), - .availableWidth = size.width() - size.height() / 2, .outerWidth = size.width() - size.height() / 2, + .availableWidth = size.width() - size.height() / 2, .elisionLines = 1, }); return size.width() + st::dialogsUnreadPadding; diff --git a/Telegram/SourceFiles/dialogs/ui/dialogs_suggestions.cpp b/Telegram/SourceFiles/dialogs/ui/dialogs_suggestions.cpp index 849a0c85c01c8a..88a5faea4f708e 100644 --- a/Telegram/SourceFiles/dialogs/ui/dialogs_suggestions.cpp +++ b/Telegram/SourceFiles/dialogs/ui/dialogs_suggestions.cpp @@ -262,7 +262,6 @@ bool RecentRow::refreshBadge() { QSize RecentRow::rightActionSize() const { if (_mainAppText) { - const auto &font = st::dialogRowOpenBotTextStyle.font; return QSize( _mainAppText->maxWidth() + _mainAppText->minHeight(), st::dialogRowOpenBotHeight); @@ -314,8 +313,8 @@ void RecentRow::rightActionPaint( + (st::dialogRowOpenBotHeight - _mainAppText->minHeight()) / 2; _mainAppText->draw(p, { .position = QPoint(x + size.height() / 2, y + top), - .availableWidth = outerWidth, .outerWidth = outerWidth, + .availableWidth = outerWidth, .elisionLines = 1, }); }