Slightly improved style of withdrawal widget in bot earn stats.

This commit is contained in:
23rd 2025-05-07 10:01:02 +03:00
parent 8f409a8fe2
commit d4056ac10a

View file

@ -226,6 +226,7 @@ void InnerWidget::fill() {
}
{
AddHeader(container, tr::lng_bot_earn_balance_title);
Ui::AddSkip(container);
auto dateValue = rpl::single(
data.nextWithdrawalAt
) | rpl::then(
@ -252,6 +253,7 @@ void InnerWidget::fill() {
) | rpl::map([=](StarsAmount v) {
return v ? ToUsd(v, multiplier, kMinorLength) : QString();
}));
container->resizeToWidth(container->width());
}
if (BotStarRef::Join::Allowed(peer())) {
const auto button = BotStarRef::AddViewListButton(