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.
This commit is contained in:
Joshua Goins
2024-01-15 09:35:23 -05:00
committed by Tobias Fella
parent f963e06983
commit 1f69a96766

View File

@@ -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