From cb4e7d49430713fc8577fa5d9c562d691e6f9325 Mon Sep 17 00:00:00 2001 From: James Graham Date: Thu, 26 Jun 2025 14:34:18 +0100 Subject: [PATCH] Fix room list header when collapsed --- src/rooms/RoomTreeSection.qml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/rooms/RoomTreeSection.qml b/src/rooms/RoomTreeSection.qml index b4bf40035..912f05667 100644 --- a/src/rooms/RoomTreeSection.qml +++ b/src/rooms/RoomTreeSection.qml @@ -37,13 +37,16 @@ QQC2.ItemDelegate { Keys.onReturnPressed: root.treeView.toggleExpanded(row) Keys.onSpacePressed: root.treeView.toggleExpanded(row) - contentItem: Kirigami.ListSectionHeader { - visible: !root.collapsed - horizontalPadding: 0 - topPadding: 0 - bottomPadding: 0 - text: root.collapsed ? "" : root.displayName - + contentItem: RowLayout { + spacing: 0 + Kirigami.ListSectionHeader { + Layout.fillWidth: true + visible: !root.collapsed + horizontalPadding: 0 + topPadding: 0 + bottomPadding: 0 + text: root.collapsed ? "" : root.displayName + } QQC2.ToolButton { id: collapseButton Layout.alignment: Qt.AlignHCenter