Fixed width of username label with button for QR in profiles.

This commit is contained in:
23rd 2024-12-18 16:21:07 +03:00
parent 2532a0ff59
commit 7ea6c6c84b

View file

@ -1241,9 +1241,9 @@ object_ptr<Ui::RpWidget> DetailsFiller::setupInfo() {
int rightSkip) { int rightSkip) {
const auto parent = label->parentWidget(); const auto parent = label->parentWidget();
rpl::combine( rpl::combine(
result->widthValue(), label->geometryValue(),
button->sizeValue() button->sizeValue()
) | rpl::start_with_next([=](int, QSize buttonSize) { ) | rpl::start_with_next([=](const QRect&, const QSize &buttonSize) {
const auto s = parent->size(); const auto s = parent->size();
button->moveToRight( button->moveToRight(
rightSkip, rightSkip,