From a34b0d78cbc3f8ff1bedce260129b59bb9c13e13 Mon Sep 17 00:00:00 2001 From: AT Date: Wed, 3 Jul 2024 11:59:48 -0400 Subject: [PATCH] Fix placement of our thumbs down dialog and datalake opt-in dialog. (#2540) Signed-off-by: Adam Treat --- gpt4all-chat/qml/ChatView.qml | 7 ++----- gpt4all-chat/qml/MyDialog.qml | 1 + 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/gpt4all-chat/qml/ChatView.qml b/gpt4all-chat/qml/ChatView.qml index 7b178a0d..083bf8f5 100644 --- a/gpt4all-chat/qml/ChatView.qml +++ b/gpt4all-chat/qml/ChatView.qml @@ -991,11 +991,8 @@ Rectangle { ThumbsDownDialog { id: thumbsDownDialog - property point globalPoint: mapFromItem(window, - window.width / 2 - width / 2, - window.height / 2 - height / 2) - x: globalPoint.x - y: globalPoint.y + x: Math.round((parent.width - width) / 2) + y: Math.round((parent.height - height) / 2) width: 640 height: 300 property string text: value diff --git a/gpt4all-chat/qml/MyDialog.qml b/gpt4all-chat/qml/MyDialog.qml index 56365578..fccdc196 100644 --- a/gpt4all-chat/qml/MyDialog.qml +++ b/gpt4all-chat/qml/MyDialog.qml @@ -7,6 +7,7 @@ import QtQuick.Layouts Dialog { id: myDialog + parent: Overlay.overlay property alias closeButtonVisible: myCloseButton.visible background: Rectangle { width: parent.width