summary refs log tree commit diff
path: root/resources/qml
diff options
context:
space:
mode:
authorAlexander Bantyev <balsoft@balsoft.ru>2023-01-18 12:17:58 +0400
committerNicolas Werner <nicolas.werner@hotmail.de>2023-02-14 22:01:00 +0100
commitac19c6c92b676f5544dc9094b26afec29768c056 (patch)
tree70260034e6ce8fd3b4718a45e41ec11c6450da4f /resources/qml
parentMerge pull request #1366 from Nheko-Reborn/uiTweaks (diff)
downloadnheko-ac19c6c92b676f5544dc9094b26afec29768c056.tar.xz
Room list: add scrollbar when not collapsed
Diffstat (limited to 'resources/qml')
-rw-r--r--resources/qml/RoomList.qml8
1 files changed, 7 insertions, 1 deletions
diff --git a/resources/qml/RoomList.qml b/resources/qml/RoomList.qml
index 348d104f..d51933f9 100644
--- a/resources/qml/RoomList.qml
+++ b/resources/qml/RoomList.qml
@@ -60,6 +60,12 @@ Page {
         model: Rooms
         reuseItems: true
 
+        ScrollBar.vertical: ScrollBar {
+            id: roomlistscrollbar
+            active: true
+            visible: (! collapsed) && (parent.contentHeight > parent.height)
+        }
+
         ScrollHelper {
             flickable: parent
             anchors.fill: parent
@@ -258,7 +264,7 @@ Page {
             }
 
             height: avatarSize + 2 * Nheko.paddingMedium
-            width: ListView.view.width
+            width: ListView.view.width - roomlistscrollbar.width
             state: "normal"
             ToolTip.visible: hovered && collapsed
             ToolTip.delay: Nheko.tooltipDelay