Fix the alignment.

This commit is contained in:
Adam Treat 2023-06-20 17:40:02 -04:00
parent eebfe642c4
commit 85bc861835

View File

@ -49,7 +49,7 @@ Dialog {
Label { Label {
id: listLabel id: listLabel
text: "Available Models:" text: qsTr("Available Models:")
Layout.alignment: Qt.AlignLeft Layout.alignment: Qt.AlignLeft
Layout.fillWidth: true Layout.fillWidth: true
color: theme.textColor color: theme.textColor
@ -57,7 +57,10 @@ Dialog {
Label { Label {
visible: !Download.modelList.length visible: !Download.modelList.length
anchors.centerIn: parent Layout.fillWidth: true
Layout.fillHeight: true
horizontalAlignment: Qt.AlignHCenter
verticalAlignment: Qt.AlignVCenter
text: qsTr("Network error: could not retrieve http://gpt4all.io/models/models.json") text: qsTr("Network error: could not retrieve http://gpt4all.io/models/models.json")
color: theme.mutedTextColor color: theme.mutedTextColor
} }