Skip to content

Commit

Permalink
scrollbar fixed for main chat and chat drawer (nomic-ai#1301)
Browse files Browse the repository at this point in the history
  • Loading branch information
lakkn authored Jul 31, 2023
1 parent 3d2db76 commit cbdcde8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion gpt4all-chat/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")
Expand Down
6 changes: 3 additions & 3 deletions gpt4all-chat/qml/ChatDrawer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -287,4 +287,4 @@ Drawer {
}
}
}
}
}

0 comments on commit cbdcde8

Please sign in to comment.