From e00e562b5f985e1ed1bd1ae481115bfe0a68436b Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Fri, 11 Oct 2024 19:59:34 +0300 Subject: [PATCH] Fixed update of width for usernames label in profile section as well. --- Telegram/SourceFiles/info/profile/info_profile_actions.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp index cc9351480..4fc4d060d 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp @@ -1184,6 +1184,7 @@ object_ptr DetailsFiller::setupInfo() { usernameLine.text->parentWidget(), st::infoProfileLabeledButtonQr); fitLabelToButton(qrButton, usernameLine.text); + fitLabelToButton(qrButton, usernameLine.subtext); qrButton->setClickedCallback([=] { controller->show( Box(Ui::FillPeerQrBox, user, std::nullopt, nullptr)); @@ -1260,6 +1261,7 @@ object_ptr DetailsFiller::setupInfo() { linkLine.text->parentWidget(), st::infoProfileLabeledButtonQr); fitLabelToButton(qr, linkLine.text); + fitLabelToButton(qr, linkLine.subtext); qr->setClickedCallback([=, peer = _peer] { controller->show( Box(Ui::FillPeerQrBox, peer, std::nullopt, nullptr));