diff --git a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityList.qml b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityList.qml index c19ece28c5..23aa865c7f 100644 --- a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityList.qml +++ b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityList.qml @@ -10,16 +10,13 @@ Item { property string searchStr: "" id: root width: parent.width - height: childrenRect.height - visible: communityListView.visible - + height: Math.max(communityListView.height, noSearchResults.height) ListView { id: communityListView spacing: Style.current.halfPadding anchors.top: parent.top height: childrenRect.height - // FIXME the height doesn't update -// visible: height > 0 + visible: height > 10 width:parent.width interactive: false model: chatsModel.joinedCommunities diff --git a/ui/app/AppLayouts/Chat/ContactsColumn/Channel.qml b/ui/app/AppLayouts/Chat/ContactsColumn/Channel.qml index 6dc3ab3efb..5b5d940372 100644 --- a/ui/app/AppLayouts/Chat/ContactsColumn/Channel.qml +++ b/ui/app/AppLayouts/Chat/ContactsColumn/Channel.qml @@ -47,7 +47,7 @@ Rectangle { // Hide the box if it is filtered out property bool isVisible: searchStr === "" || name.includes(searchStr) visible: isVisible ? true : false - height: isVisible ? !isCompact ? 64 : contactImage.height + Style.current.smallPadding * 2 : 0 + height: isVisible ? (!isCompact ? 64 : contactImage.height + Style.current.smallPadding * 2) : 0 StatusIdenticon { id: contactImage diff --git a/ui/app/AppLayouts/Chat/ContactsColumn/ChannelList.qml b/ui/app/AppLayouts/Chat/ContactsColumn/ChannelList.qml index 953d9c556a..f321707168 100644 --- a/ui/app/AppLayouts/Chat/ContactsColumn/ChannelList.qml +++ b/ui/app/AppLayouts/Chat/ContactsColumn/ChannelList.qml @@ -23,7 +23,7 @@ Rectangle { spacing: Style.current.halfPadding anchors.top: parent.top height: childrenRect.height - visible: height > 0 + visible: height > 50 anchors.right: parent.right anchors.left: parent.left interactive: false