From 6ad217139091541972a03c85befadcca5994f41d Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Fri, 23 Jul 2021 11:01:09 +0200 Subject: [PATCH] fix(CommunitiesPopup): render community description not just member count This also updates StatusQ as the underlying StatusListItem component wasn't able to handle multi-line subtitles very well. Also it didn't support tertiaryTitle, which is needed in this UI. --- .../Chat/CommunityComponents/CommunitiesPopup.qml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ui/app/AppLayouts/Chat/CommunityComponents/CommunitiesPopup.qml b/ui/app/AppLayouts/Chat/CommunityComponents/CommunitiesPopup.qml index 7e70173f1e..9707e9a066 100644 --- a/ui/app/AppLayouts/Chat/CommunityComponents/CommunitiesPopup.qml +++ b/ui/app/AppLayouts/Chat/CommunityComponents/CommunitiesPopup.qml @@ -91,7 +91,9 @@ StatusModal { color: Theme.palette.directColor1 } - StatusModalDivider {} + StatusModalDivider { + bottomPadding: 8 + } } } @@ -115,8 +117,10 @@ StatusModal { height: visible ? implicitHeight : 0 anchors.horizontalCenter: parent.horizontalCenter title: name - //% "%1 members" - subTitle: qsTrId("-1-members").arg(nbMembers) + subTitle: description + tertiaryTitle: qsTrId("%1 members").arg(nbMembers) + statusListItemTitle.font.weight: Font.Bold + statusListItemTitle.font.pixelSize: 17 image.source: thumbnailImage icon.isLetterIdenticon: !!!thumbnailImage icon.background.color: communityColor