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:
@@ -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 {};
|
||||
}
|
||||
|
Reference in New Issue
Block a user