From 47eba6b7209c7ec0d3b206d0eee553f0d3e7e921 Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Wed, 27 Nov 2024 16:07:06 +0000 Subject: [PATCH] Make the room list slightly narrower by default `GridUnit * 17` is 306px, which is quite wide. Given that the focus in this app is on the content (i.e. the chat view) let's make the sidebar a 36px narrower to make more room for content. BUG: 496722 FIXED-IN: 24.12.0 --- src/qml/RoomListPage.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qml/RoomListPage.qml b/src/qml/RoomListPage.qml index dd8ffe8ce..ffb0b1cb5 100644 --- a/src/qml/RoomListPage.qml +++ b/src/qml/RoomListPage.qml @@ -325,7 +325,7 @@ Kirigami.Page { QtObject { id: _private property int currentWidth: NeoChatConfig.collapsed ? collapsedSize : defaultWidth - readonly property int defaultWidth: Kirigami.Units.gridUnit * 17 + readonly property int defaultWidth: Kirigami.Units.gridUnit * 15 readonly property int collapseWidth: Kirigami.Units.gridUnit * 10 readonly property int collapsedSize: Kirigami.Units.gridUnit + (NeoChatConfig.compactRoomList ? 0 : Kirigami.Units.largeSpacing * 2) + Kirigami.Units.largeSpacing * 2 + (scrollView.QQC2.ScrollBar.vertical.visible ? scrollView.QQC2.ScrollBar.vertical.width : 0) }