mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +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(),
|
||||
st::inviteViaLinkButton),
|
||||
style::margins(0, st::membersMarginTop, 0, 0));
|
||||
object_ptr<Info::Profile::FloatingIcon>(
|
||||
|
||||
const auto icon = Ui::CreateChild<Info::Profile::FloatingIcon>(
|
||||
button->entity(),
|
||||
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([=] {
|
||||
showBox(Box<EditPeerTypeBox>(_peer));
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue