mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-13 04:37:11 +02:00
Extended width of ReceiptCreditsBox.
This commit is contained in:
parent
fbce06cb26
commit
f7aaece2f7
1 changed files with 3 additions and 2 deletions
|
@ -820,6 +820,7 @@ void ReceiptCreditsBox(
|
|||
const auto nonConvertible = (gotStarGift && !e.starsConverted);
|
||||
|
||||
box->setStyle(st::giveawayGiftCodeBox);
|
||||
box->setWidth(st::boxWideWidth);
|
||||
box->setNoContentMargin(true);
|
||||
|
||||
const auto content = box->verticalLayout();
|
||||
|
@ -1303,7 +1304,7 @@ void ReceiptCreditsBox(
|
|||
Ui::Premium::MiniStars::Type::BiStars);
|
||||
stars->setColorOverride(Ui::Premium::CreditsIconGradientStops());
|
||||
widget->resize(
|
||||
st::boxWidth - stUser.photoSize,
|
||||
st::boxWideWidth - stUser.photoSize,
|
||||
stUser.photoSize * 2);
|
||||
content->sizeValue(
|
||||
) | rpl::start_with_next([=](const QSize &size) {
|
||||
|
@ -1430,7 +1431,7 @@ void ReceiptCreditsBox(
|
|||
AddChildToWidgetCenter(button, loadingAnimation);
|
||||
loadingAnimation->showOn(state->confirmButtonBusy.value());
|
||||
}
|
||||
const auto buttonWidth = st::boxWidth
|
||||
const auto buttonWidth = st::boxWideWidth
|
||||
- rect::m::sum::h(st::giveawayGiftCodeBox.buttonPadding);
|
||||
|
||||
button->widthValue() | rpl::filter([=] {
|
||||
|
|
Loading…
Add table
Reference in a new issue