fix(@desktop/chat): Group members list must show only 5

Enable ListView clip and modified ColumnLayout heigh to bound its painting to the needed content.
Adjust ListView spacing to allow the visualization of 5 members.

Closes #4386
This commit is contained in:
Noelia 2022-01-14 11:27:37 +01:00 committed by Noelia
parent f8f0952b56
commit 6d2d36650c
1 changed files with 2 additions and 2 deletions

View File

@ -162,7 +162,7 @@ StatusModal {
id: groupInfoItem
width: parent.width - 2*Style.current.padding
height: parent.height
height: parent.height - 2*Style.current.padding
anchors.top: parent.top
anchors.topMargin: Style.current.padding
anchors.horizontalCenter: parent.horizontalCenter
@ -205,9 +205,9 @@ StatusModal {
ListView {
id: memberList
spacing: Style.current.padding
Layout.fillWidth: true
Layout.fillHeight: true
clip: true
model: popup.channel? popup.channel.members : []
delegate: StatusListItem {
id: contactRow