mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Remove some FixedHeightWidget-s.
This commit is contained in:
@@ -488,8 +488,9 @@ not_null<Ui::RpWidget*> PanelEditDocument::setupContent(
|
||||
}, lifetime());
|
||||
}
|
||||
|
||||
inner->add(
|
||||
object_ptr<Ui::FixedHeightWidget>(inner, st::passportDetailsSkip));
|
||||
inner->add(object_ptr<Ui::FixedHeightWidget>(
|
||||
inner,
|
||||
st::passportDetailsSkip));
|
||||
}
|
||||
if (auto text = _controller->deleteValueLabel()) {
|
||||
inner->add(
|
||||
|
||||
@@ -64,21 +64,13 @@ not_null<Ui::RpWidget*> PanelForm::setupContent() {
|
||||
inner->resizeToWidth(width);
|
||||
}, inner->lifetime());
|
||||
|
||||
const auto userpicWrap = inner->add(
|
||||
object_ptr<Ui::FixedHeightWidget>(
|
||||
inner,
|
||||
st::passportFormUserpic.size.height()),
|
||||
st::passportFormUserpicPadding);
|
||||
_userpic = Ui::AttachParentChild(
|
||||
userpicWrap,
|
||||
_userpic = inner->add(
|
||||
object_ptr<Ui::UserpicButton>(
|
||||
userpicWrap,
|
||||
inner,
|
||||
bot,
|
||||
st::passportFormUserpic));
|
||||
userpicWrap->widthValue(
|
||||
) | rpl::start_with_next([=](int width) {
|
||||
_userpic->move((width - _userpic->width()) / 2, _userpic->y());
|
||||
}, _userpic->lifetime());
|
||||
st::passportFormUserpic),
|
||||
st::passportFormUserpicPadding,
|
||||
style::al_top);
|
||||
|
||||
_about1 = inner->add(
|
||||
object_ptr<Ui::FlatLabel>(
|
||||
|
||||
Reference in New Issue
Block a user