Fixed width of button in passport VerifyBox.

This commit is contained in:
23rd 2022-12-29 00:33:21 +03:00
parent 1666683dbb
commit 43671e2b47
1 changed files with 4 additions and 0 deletions

View File

@ -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);