Added suggestion for annual premium to top bar in dialogs.

This commit is contained in:
23rd
2025-04-05 19:17:25 +03:00
committed by John Preston
parent 98d9357208
commit 640db8af7d
9 changed files with 118 additions and 20 deletions
@@ -392,7 +392,9 @@ Widget::Widget(
) | rpl::start_with_next([=](int desiredHeight, float64 shown) {
const auto newHeight = desiredHeight * (1. - shown);
_topBarSuggestion->entity()->setMaximumHeight(newHeight);
_topBarSuggestion->entity()->setMinimumWidth(width());
_topBarSuggestion->entity()->setMinimumWidth((shown > 0)
? width()
: 0);
_topBarSuggestion->entity()->resize(width(), newHeight);
}, _topBarSuggestion->lifetime());
}