2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Improve "Open" bot button in suggestions.

This commit is contained in:
John Preston
2025-04-11 17:16:50 +04:00
parent 01d927aceb
commit d09d1d72e6
2 changed files with 5 additions and 2 deletions

View File

@@ -282,7 +282,10 @@ QSize RecentRow::rightActionSize() const {
QMargins RecentRow::rightActionMargins() const {
if (_mainAppText && _badgeSize.isEmpty()) {
return st::dialogRowOpenBotRecent.margin;
const auto &st = st::dialogRowOpenBotRecent;
auto margins = st.margin;
margins.setTop((st::recentPeersItem.height - st.button.height) / 2);
return margins;
} else if (_badgeSize.isEmpty()) {
return {};
}