From 6d593d6ea10de27e21b70a1670a97c0090fdf6cb Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Wed, 26 Jun 2024 16:36:00 -0400 Subject: [PATCH] Fix the thumbsdown dialog. Signed-off-by: Adam Treat --- gpt4all-chat/qml/ChatView.qml | 2 ++ gpt4all-chat/qml/MyDialog.qml | 6 ++++-- gpt4all-chat/qml/ThumbsDownDialog.qml | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gpt4all-chat/qml/ChatView.qml b/gpt4all-chat/qml/ChatView.qml index c7f13190..677cedc6 100644 --- a/gpt4all-chat/qml/ChatView.qml +++ b/gpt4all-chat/qml/ChatView.qml @@ -1085,6 +1085,8 @@ Rectangle { window.height / 2 - height / 2) x: globalPoint.x y: globalPoint.y + width: 640 + height: 300 property string text: value response: newResponse === undefined || newResponse === "" ? text : newResponse onAccepted: { diff --git a/gpt4all-chat/qml/MyDialog.qml b/gpt4all-chat/qml/MyDialog.qml index 37d07bda..56365578 100644 --- a/gpt4all-chat/qml/MyDialog.qml +++ b/gpt4all-chat/qml/MyDialog.qml @@ -33,8 +33,10 @@ Dialog { y: 0 - myDialog.padding + 15 z: 300 visible: myDialog.closePolicy != Popup.NoAutoClose - width: 30 - height: 30 + width: 24 + height: 24 + imageWidth: 24 + imageHeight: 24 padding: 0 source: "qrc:/gpt4all/icons/close.svg" fillMode: Image.PreserveAspectFit diff --git a/gpt4all-chat/qml/ThumbsDownDialog.qml b/gpt4all-chat/qml/ThumbsDownDialog.qml index 49f5831b..ea28f6b5 100644 --- a/gpt4all-chat/qml/ThumbsDownDialog.qml +++ b/gpt4all-chat/qml/ThumbsDownDialog.qml @@ -44,9 +44,9 @@ MyDialog { ScrollView { clip: true - height: 300 + height: 120 width: parent.width - ScrollBar.vertical.policy: ScrollBar.AlwaysOn + ScrollBar.vertical.policy: ScrollBar.AsNeeded ScrollBar.horizontal.policy: ScrollBar.AlwaysOff MyTextArea {