fix(InviteFriendsToCommunityPopup): invite candidates list made scrollable

Additionally, bottom padding is fixed to avoid cutting-off the list
too early.

Closes: #7603
This commit is contained in:
Michał Cieślak 2022-10-25 11:06:18 +02:00 committed by Michał
parent 6b90d4d5a6
commit 2e05a9784e
3 changed files with 25 additions and 15 deletions

View File

@ -58,7 +58,6 @@ ColumnLayout {
PickedContacts {
id: existingContacts
enabled: false
contactsStore: root.contactsStore
pubKeys: root.pubKeys
Layout.fillWidth: true

View File

@ -52,6 +52,8 @@ StatusStackModal {
stackTitle: qsTr("Invite Contacts to %1").arg(community.name)
width: 640
implicitHeight: 700
padding: 0
leftPadding: 0
rightPadding: 0
@ -82,18 +84,28 @@ StatusStackModal {
}
stackItems: [
CommunityProfilePopupInviteFriendsPanel {
width: parent.width
rootStore: root.rootStore
contactsStore: root.contactsStore
community: root.community
onPubKeysChanged: root.pubKeys = pubKeys
Item {
CommunityProfilePopupInviteFriendsPanel {
anchors.fill: parent
anchors.topMargin: 16
anchors.bottomMargin: 16
rootStore: root.rootStore
contactsStore: root.contactsStore
community: root.community
onPubKeysChanged: root.pubKeys = pubKeys
}
},
CommunityProfilePopupInviteMessagePanel {
width: parent.width
contactsStore: root.contactsStore
pubKeys: root.pubKeys
onInviteMessageChanged: root.inviteMessage = inviteMessage
Item {
CommunityProfilePopupInviteMessagePanel {
anchors.fill: parent
anchors.topMargin: 16
contactsStore: root.contactsStore
pubKeys: root.pubKeys
onInviteMessageChanged: root.inviteMessage = inviteMessage
}
}
]
}

View File

@ -30,9 +30,6 @@ Item {
return parts.some(p => p.startsWith(filter))
}
implicitWidth: contactGridView.implicitWidth + contactGridView.margins
implicitHeight: visible ? contactGridView.contentHeight : 0
StatusGridView {
id: contactGridView
anchors.fill: parent
@ -65,6 +62,8 @@ Item {
statusListItemIcon.badge.border.color: Theme.palette.baseColor4
statusListItemIcon.badge.implicitHeight: 14 // 10 px + 2 px * 2 borders
statusListItemIcon.badge.implicitWidth: 14 // 10 px + 2 px * 2 borders
sensor.enabled: false
}
}
}