From cbdcde8b75868e145b973725c7c18970091a7f2f Mon Sep 17 00:00:00 2001 From: Lakshay Kansal <58596666+lakkn@users.noreply.github.com> Date: Mon, 31 Jul 2023 12:18:38 -0400 Subject: [PATCH] scrollbar fixed for main chat and chat drawer (#1301) --- gpt4all-chat/main.qml | 3 ++- gpt4all-chat/qml/ChatDrawer.qml | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gpt4all-chat/main.qml b/gpt4all-chat/main.qml index 6c850805..6a1eac12 100644 --- a/gpt4all-chat/main.qml +++ b/gpt4all-chat/main.qml @@ -675,7 +675,7 @@ Window { anchors.top: parent.top anchors.bottom: !currentChat.isServer ? textInputView.top : parent.bottom anchors.bottomMargin: !currentChat.isServer ? 30 : 0 - ScrollBar.vertical.policy: ScrollBar.AlwaysOn + ScrollBar.vertical.policy: ScrollBar.AlwaysOff Rectangle { anchors.fill: parent @@ -729,6 +729,7 @@ Window { visible: ModelList.installedModels.count !== 0 anchors.fill: parent model: chatModel + ScrollBar.vertical: ScrollBar { policy: ScrollBar.AlwaysOn } Accessible.role: Accessible.List Accessible.name: qsTr("List of prompt/response pairs") diff --git a/gpt4all-chat/qml/ChatDrawer.qml b/gpt4all-chat/qml/ChatDrawer.qml index 3f144975..c3e31237 100644 --- a/gpt4all-chat/qml/ChatDrawer.qml +++ b/gpt4all-chat/qml/ChatDrawer.qml @@ -63,15 +63,15 @@ Drawer { anchors.top: newChat.bottom anchors.bottom: checkForUpdatesButton.top anchors.bottomMargin: 10 - ScrollBar.vertical.policy: ScrollBar.AlwaysOn + ScrollBar.vertical.policy: ScrollBar.AlwaysOff clip: true ListView { id: conversationList anchors.fill: parent anchors.rightMargin: 10 - model: ChatListModel + ScrollBar.vertical: ScrollBar { policy: ScrollBar.AlwaysOn } delegate: Rectangle { id: chatRectangle @@ -287,4 +287,4 @@ Drawer { } } } -} \ No newline at end of file +}