Reduced left padding for info labels in profile section.

This commit is contained in:
23rd
2025-10-21 14:14:08 +03:00
parent 1905a67e6c
commit 2eefef3649
2 changed files with 15 additions and 22 deletions
@@ -1608,7 +1608,7 @@ object_ptr<Ui::RpWidget> DetailsFiller::setupInfo() {
const auto qrButton = Ui::CreateChild<Ui::IconButton>(
usernameLine.text->parentWidget(),
st::infoProfileLabeledButtonQr);
const auto rightSkip = 0;// st::infoProfileLabeledButtonQrRightSkip;
const auto rightSkip = st::infoProfileLabeledButtonQrRightSkip;
fitLabelToButton(qrButton, usernameLine.text, rightSkip);
fitLabelToButton(qrButton, usernameLine.subtext, rightSkip);
qrButton->setClickedCallback([=] {
@@ -1692,7 +1692,7 @@ object_ptr<Ui::RpWidget> DetailsFiller::setupInfo() {
const auto qr = Ui::CreateChild<Ui::IconButton>(
linkLine.text->parentWidget(),
st::infoProfileLabeledButtonQr);
const auto rightSkip = 0;// st::infoProfileLabeledButtonQrRightSkip;
const auto rightSkip = st::infoProfileLabeledButtonQrRightSkip;
fitLabelToButton(qr, linkLine.text, rightSkip);
fitLabelToButton(qr, linkLine.subtext, rightSkip);
qr->setClickedCallback([=, peer = _peer] {
@@ -1726,10 +1726,6 @@ object_ptr<Ui::RpWidget> DetailsFiller::setupInfo() {
addTranslateToMenu(about.text, AboutWithAdvancedValue(_peer));
}
}
object_ptr<FloatingIcon>(
result,
st::infoIconInformation,
st::infoInformationIconPosition);
return result;
}
@@ -1793,7 +1789,7 @@ object_ptr<Ui::RpWidget> DetailsFiller::setupPersonalChannel(
std::move(text),
st::infoLabel,
st::infoLabeled,
st::infoProfileLabeledPadding);
st::infoProfilePersonalChannelPadding);
onlyChannelWrap->entity()->add(std::move(line.wrap));
line.text->setClickHandlerFilter([=](
@@ -1840,7 +1836,7 @@ object_ptr<Ui::RpWidget> DetailsFiller::setupPersonalChannel(
not_null<HistoryItem*> item,
anim::type animated) {
const auto &stUserpic = st::infoPersonalChannelUserpic;
const auto &stLabeled = st::infoProfileLabeledPadding;
const auto &stLabeled = st::infoProfilePersonalChannelPadding;
messageChannelWrap->toggle(false, anim::type::instant);
clear();
@@ -1955,10 +1951,10 @@ object_ptr<Ui::RpWidget> DetailsFiller::setupPersonalChannel(
rpl::single(item->history()->peer->asChannel())),
st::infoLabel),
QMargins(
st::infoProfileLabeledPadding.left(),
st::infoProfilePersonalChannelPadding.left(),
0,
st::infoProfileLabeledPadding.right(),
st::infoProfileLabeledPadding.bottom()));
st::infoProfilePersonalChannelPadding.right(),
st::infoProfilePersonalChannelPadding.bottom()));
}
{
const auto button = Ui::CreateSimpleRectButton(