diff --git a/src/app/chat/views/community_item.nim b/src/app/chat/views/community_item.nim index c60178d2b9..3124f95648 100644 --- a/src/app/chat/views/community_item.nim +++ b/src/app/chat/views/community_item.nim @@ -119,7 +119,7 @@ QtObject: QtProperty[bool] isMember: read = isMember - proc nbMembers*(self: CommunityItemView): int {.slot.} = result = ?.self.communityItem.members.len + proc nbMembers*(self: CommunityItemView): int {.slot.} = result = ?.self.members.members.len QtProperty[int] nbMembers: read = nbMembers diff --git a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityMembersPopup.qml b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityMembersPopup.qml index 10fbee78f5..7f2abe4488 100644 --- a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityMembersPopup.qml +++ b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityMembersPopup.qml @@ -35,12 +35,16 @@ ModalPopup { anchors.top: groupName.bottom anchors.topMargin: 2 font.pixelSize: 14 - color: Style.current.darkGrey + color: Style.current.secondaryText } Separator { anchors.top: nbMembersText.bottom anchors.topMargin: Style.current.padding + anchors.left: parent.left + anchors.leftMargin: -Style.current.padding + anchors.right: parent.right + anchors.rightMargin: -Style.current.padding } } @@ -48,7 +52,7 @@ ModalPopup { id: inviteBtn //% "Invite People" label: qsTrId("invite-people") - width: popup.width + width: parent.width iconName: "invite" onClicked: openPopup(inviteFriendsPopup) Component { @@ -92,12 +96,11 @@ ModalPopup { anchors.rightMargin: -Style.current.padding } - ListView { id: memberList anchors.top: sep2.visible ? sep2.bottom : sep.bottom anchors.topMargin: Style.current.smallPadding - anchors.bottom: popup.bottom + anchors.bottom: parent.bottom anchors.left: parent.left anchors.right: parent.right anchors.bottomMargin: Style.current.halfPadding