mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +02:00
Improve "Open" bot button in suggestions.
This commit is contained in:
parent
01d927aceb
commit
d09d1d72e6
2 changed files with 5 additions and 2 deletions
|
@ -127,7 +127,7 @@ dialogRowOpenBot: DialogRightButton {
|
|||
margin: margins(0px, 32px, 10px, 0px);
|
||||
}
|
||||
dialogRowOpenBotRecent: DialogRightButton(dialogRowOpenBot) {
|
||||
margin: margins(0px, 32px, 28px, 0px);
|
||||
margin: margins(0px, 32px, 16px, 0px);
|
||||
}
|
||||
|
||||
forumDialogJumpArrow: icon{{ "dialogs/dialogs_topic_arrow", dialogsTextFg }};
|
||||
|
|
|
@ -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 {};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue