Fix offset of prompt/response icons for smaller text.

This commit is contained in:
Adam Treat 2023-05-31 14:26:59 -04:00
parent 5f940208e4
commit f4a1f7340c

View File

@ -629,7 +629,7 @@ Window {
topPadding: 20 topPadding: 20
bottomPadding: 20 bottomPadding: 20
leftPadding: 100 leftPadding: 70
rightPadding: 100 rightPadding: 100
onLinkActivated: function (link) { onLinkActivated: function (link) {
@ -642,9 +642,8 @@ Window {
Item { Item {
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: 90 anchors.leftMargin: 60
anchors.top: parent.top y: parent.topPadding + (parent.positionToRectangle(0).height / 2) - (height / 2)
anchors.topMargin: 5
visible: (currentResponse ? true : false) && value === "" && currentChat.responseInProgress visible: (currentResponse ? true : false) && value === "" && currentChat.responseInProgress
width: childrenRect.width width: childrenRect.width
height: childrenRect.height height: childrenRect.height
@ -667,9 +666,8 @@ Window {
Rectangle { Rectangle {
anchors.left: parent.left anchors.left: parent.left
anchors.top: parent.top
anchors.leftMargin: 20 anchors.leftMargin: 20
anchors.topMargin: 20 y: parent.topPadding + (parent.positionToRectangle(0).height / 2) - (height / 2)
width: 30 width: 30
height: 30 height: 30
radius: 5 radius: 5
@ -708,8 +706,7 @@ Window {
(!currentResponse || !currentChat.responseInProgress) && Network.isActive (!currentResponse || !currentChat.responseInProgress) && Network.isActive
anchors.right: parent.right anchors.right: parent.right
anchors.rightMargin: 20 anchors.rightMargin: 20
anchors.top: parent.top y: parent.topPadding + (parent.positionToRectangle(0).height / 2) - (height / 2)
anchors.topMargin: 20
spacing: 10 spacing: 10
Item { Item {