mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fixed icon position of invite links in add members box.
This commit is contained in:
parent
f9df37960b
commit
d034410a3f
1 changed files with 10 additions and 2 deletions
|
@ -199,10 +199,18 @@ void AddParticipantsBoxController::addInviteLinkButton() {
|
||||||
tr::lng_profile_add_via_link(),
|
tr::lng_profile_add_via_link(),
|
||||||
st::inviteViaLinkButton),
|
st::inviteViaLinkButton),
|
||||||
style::margins(0, st::membersMarginTop, 0, 0));
|
style::margins(0, st::membersMarginTop, 0, 0));
|
||||||
object_ptr<Info::Profile::FloatingIcon>(
|
|
||||||
|
const auto icon = Ui::CreateChild<Info::Profile::FloatingIcon>(
|
||||||
button->entity(),
|
button->entity(),
|
||||||
st::inviteViaLinkIcon,
|
st::inviteViaLinkIcon,
|
||||||
st::inviteViaLinkIconPosition);
|
QPoint());
|
||||||
|
button->entity()->heightValue(
|
||||||
|
) | rpl::start_with_next([=](int height) {
|
||||||
|
icon->moveToLeft(
|
||||||
|
st::inviteViaLinkIconPosition.x(),
|
||||||
|
(height - st::inviteViaLinkIcon.height()) / 2);
|
||||||
|
}, icon->lifetime());
|
||||||
|
|
||||||
button->entity()->setClickedCallback([=] {
|
button->entity()->setClickedCallback([=] {
|
||||||
showBox(Box<EditPeerTypeBox>(_peer));
|
showBox(Box<EditPeerTypeBox>(_peer));
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue