diff --git a/main.qml b/main.qml index 2f98dabe..d50087bc 100644 --- a/main.qml +++ b/main.qml @@ -198,6 +198,8 @@ Window { SettingsDialog { id: settingsDialog anchors.centerIn: parent + width: Math.min(1024, window.width - (window.width * .2)) + height: Math.min(600, window.height - (window.height * .2)) } Button { @@ -257,6 +259,8 @@ Window { NetworkDialog { id: networkDialog anchors.centerIn: parent + width: Math.min(1024, window.width - (window.width * .2)) + height: Math.min(600, window.height - (window.height * .2)) Item { Accessible.role: Accessible.Dialog Accessible.name: qsTr("Network dialog") @@ -518,6 +522,8 @@ Window { ModelDownloaderDialog { id: downloadNewModels anchors.centerIn: parent + width: Math.min(1024, window.width - (window.width * .2)) + height: Math.min(600, window.height - (window.height * .2)) Item { Accessible.role: Accessible.Dialog Accessible.name: qsTr("Download new models dialog") diff --git a/qml/ModelDownloaderDialog.qml b/qml/ModelDownloaderDialog.qml index ef882563..92b564f8 100644 --- a/qml/ModelDownloaderDialog.qml +++ b/qml/ModelDownloaderDialog.qml @@ -10,8 +10,6 @@ import network Dialog { id: modelDownloaderDialog - width: 1024 - height: 600 modal: true opacity: 0.9 closePolicy: LLM.modelList.length === 0 ? Popup.NoAutoClose : (Popup.CloseOnEscape | Popup.CloseOnPressOutside) diff --git a/qml/NetworkDialog.qml b/qml/NetworkDialog.qml index f571697a..10b97bf9 100644 --- a/qml/NetworkDialog.qml +++ b/qml/NetworkDialog.qml @@ -13,8 +13,6 @@ Dialog { modal: true opacity: 0.9 padding: 20 - width: 1024 - height: column.height + dialogBox.height + 20 Theme { id: theme diff --git a/qml/SettingsDialog.qml b/qml/SettingsDialog.qml index 902a0b61..7560c29a 100644 --- a/qml/SettingsDialog.qml +++ b/qml/SettingsDialog.qml @@ -11,8 +11,6 @@ import llm Dialog { id: settingsDialog modal: true - width: 1024 - height: 600 opacity: 0.9 background: Rectangle { anchors.fill: parent diff --git a/qml/ThumbsDownDialog.qml b/qml/ThumbsDownDialog.qml index abc98073..8cb1d115 100644 --- a/qml/ThumbsDownDialog.qml +++ b/qml/ThumbsDownDialog.qml @@ -12,7 +12,6 @@ Dialog { modal: true opacity: 0.9 padding: 20 - width: 900 Theme { id: theme