From 1f69a96766031b3b02259a0c4578905103100702 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 15 Jan 2024 09:35:23 -0500 Subject: [PATCH] Hide the subtitle text for room delegates if there is none This centers the room name label for room list items, which looks a bit cleaner than nothing being there at all. --- src/qml/RoomDelegate.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qml/RoomDelegate.qml b/src/qml/RoomDelegate.qml index c542ac636..b45262daf 100644 --- a/src/qml/RoomDelegate.qml +++ b/src/qml/RoomDelegate.qml @@ -90,7 +90,7 @@ Delegates.RoundedItemDelegate { elide: Text.ElideRight font: Kirigami.Theme.smallFont opacity: root.hasNotifications ? 0.9 : 0.7 - visible: !Config.compactRoomList + visible: !Config.compactRoomList && text.length > 0 textFormat: Text.PlainText Layout.fillWidth: true