2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fixed update of width for usernames label in profile section as well.

This commit is contained in:
23rd
2024-10-11 19:59:34 +03:00
committed by John Preston
parent 73f38c896f
commit e00e562b5f

View File

@@ -1184,6 +1184,7 @@ object_ptr<Ui::RpWidget> 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<Ui::RpWidget> 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));