diff --git a/gpt4all-chat/qml/AddRemoteModelView.qml b/gpt4all-chat/qml/AddRemoteModelView.qml index 20c71d6e..547334a7 100644 --- a/gpt4all-chat/qml/AddRemoteModelView.qml +++ b/gpt4all-chat/qml/AddRemoteModelView.qml @@ -47,7 +47,7 @@ ColumnLayout { columnSpacing: 20 RemoteModelCard { Layout.preferredWidth: 600 - Layout.minimumHeight: implicitHeight + Layout.minimumHeight: 700 Layout.alignment: Qt.AlignTop | Qt.AlignLeft providerBaseUrl: "https://api.groq.com/openai/v1/" providerName: qsTr("Groq") @@ -56,7 +56,7 @@ ColumnLayout { } RemoteModelCard { Layout.preferredWidth: 600 - Layout.minimumHeight: implicitHeight + Layout.minimumHeight: 700 Layout.alignment: Qt.AlignTop | Qt.AlignLeft providerBaseUrl: "https://api.openai.com/v1/" providerName: qsTr("OpenAI") @@ -65,7 +65,7 @@ ColumnLayout { } RemoteModelCard { Layout.preferredWidth: 600 - Layout.minimumHeight: implicitHeight + Layout.minimumHeight: 700 Layout.alignment: Qt.AlignTop | Qt.AlignLeft providerBaseUrl: "https://api.mistral.ai/v1/" providerName: qsTr("Mistral") @@ -74,7 +74,7 @@ ColumnLayout { } RemoteModelCard { Layout.preferredWidth: 600 - Layout.minimumHeight: implicitHeight + Layout.minimumHeight: 700 Layout.alignment: Qt.AlignTop | Qt.AlignLeft providerIsCustom: true providerName: qsTr("Custom") diff --git a/gpt4all-chat/qml/RemoteModelCard.qml b/gpt4all-chat/qml/RemoteModelCard.qml index a12811ed..8bcc09d3 100644 --- a/gpt4all-chat/qml/RemoteModelCard.qml +++ b/gpt4all-chat/qml/RemoteModelCard.qml @@ -28,9 +28,10 @@ Rectangle { radius: 10 border.width: 1 border.color: theme.controlBorder - implicitHeight: childrenRect.height + 40 + implicitHeight: topColumn.height + bottomColumn.height + 60 ColumnLayout { + id: topColumn anchors.left: parent.left anchors.right: parent.right anchors.top: parent.top @@ -73,6 +74,15 @@ Rectangle { id: providerDescLabel onLinkActivated: function(link) { Qt.openUrlExternally(link) } } + } + + ColumnLayout { + id: bottomColumn + anchors.left: parent.left + anchors.right: parent.right + anchors.bottom: parent.bottom + anchors.margins: 20 + spacing: 30 ColumnLayout { MySettingsLabel { @@ -113,15 +123,15 @@ Rectangle { color: theme.settingsTitleTextColor } MyTextField { - id: baseUrl + id: baseUrlField Layout.fillWidth: true wrapMode: Text.WrapAnywhere function showError() { messageToast.show(qsTr("ERROR: $BASE_URL is empty.")); - baseUrl.placeholderTextColor = theme.textErrorColor; + baseUrlField.placeholderTextColor = theme.textErrorColor; } onTextChanged: { - baseUrl.placeholderTextColor = theme.mutedTextColor; + baseUrlField.placeholderTextColor = theme.mutedTextColor; } placeholderText: qsTr("enter $BASE_URL") Accessible.role: Accessible.EditableText