mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fixed width of button in passport VerifyBox.
This commit is contained in:
parent
1666683dbb
commit
43671e2b47
1 changed files with 4 additions and 0 deletions
|
@ -144,6 +144,10 @@ void VerifyBox::setupControls(
|
|||
tr::lng_intro_fragment_button(),
|
||||
st::fragmentBoxButton),
|
||||
small);
|
||||
_content->widthValue(
|
||||
) | rpl::start_with_next([=](int w) {
|
||||
button->setFullWidth(w - small.left() - small.right());
|
||||
}, button->lifetime());
|
||||
button->setClickedCallback([=] { ::File::OpenUrl(openUrl); });
|
||||
button->setTextTransform(
|
||||
Ui::RoundButton::TextTransform::NoTransform);
|
||||
|
|
Loading…
Add table
Reference in a new issue