From f4a1f7340c76e7d925035fda89315aaeb69f09f0 Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Wed, 31 May 2023 14:26:59 -0400 Subject: [PATCH] Fix offset of prompt/response icons for smaller text. --- gpt4all-chat/main.qml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/gpt4all-chat/main.qml b/gpt4all-chat/main.qml index bb4293ff..f8776601 100644 --- a/gpt4all-chat/main.qml +++ b/gpt4all-chat/main.qml @@ -629,7 +629,7 @@ Window { topPadding: 20 bottomPadding: 20 - leftPadding: 100 + leftPadding: 70 rightPadding: 100 onLinkActivated: function (link) { @@ -642,9 +642,8 @@ Window { Item { anchors.left: parent.left - anchors.leftMargin: 90 - anchors.top: parent.top - anchors.topMargin: 5 + anchors.leftMargin: 60 + y: parent.topPadding + (parent.positionToRectangle(0).height / 2) - (height / 2) visible: (currentResponse ? true : false) && value === "" && currentChat.responseInProgress width: childrenRect.width height: childrenRect.height @@ -667,9 +666,8 @@ Window { Rectangle { anchors.left: parent.left - anchors.top: parent.top anchors.leftMargin: 20 - anchors.topMargin: 20 + y: parent.topPadding + (parent.positionToRectangle(0).height / 2) - (height / 2) width: 30 height: 30 radius: 5 @@ -708,8 +706,7 @@ Window { (!currentResponse || !currentChat.responseInProgress) && Network.isActive anchors.right: parent.right anchors.rightMargin: 20 - anchors.top: parent.top - anchors.topMargin: 20 + y: parent.topPadding + (parent.positionToRectangle(0).height / 2) - (height / 2) spacing: 10 Item {