mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-07-11 06:15:36 +00:00
Don't exceed the window size for dialogs.
This commit is contained in:
parent
005898b1bc
commit
fec5093351
6
main.qml
6
main.qml
@ -198,6 +198,8 @@ Window {
|
|||||||
SettingsDialog {
|
SettingsDialog {
|
||||||
id: settingsDialog
|
id: settingsDialog
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
width: Math.min(1024, window.width - (window.width * .2))
|
||||||
|
height: Math.min(600, window.height - (window.height * .2))
|
||||||
}
|
}
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
@ -257,6 +259,8 @@ Window {
|
|||||||
NetworkDialog {
|
NetworkDialog {
|
||||||
id: networkDialog
|
id: networkDialog
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
width: Math.min(1024, window.width - (window.width * .2))
|
||||||
|
height: Math.min(600, window.height - (window.height * .2))
|
||||||
Item {
|
Item {
|
||||||
Accessible.role: Accessible.Dialog
|
Accessible.role: Accessible.Dialog
|
||||||
Accessible.name: qsTr("Network dialog")
|
Accessible.name: qsTr("Network dialog")
|
||||||
@ -518,6 +522,8 @@ Window {
|
|||||||
ModelDownloaderDialog {
|
ModelDownloaderDialog {
|
||||||
id: downloadNewModels
|
id: downloadNewModels
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
width: Math.min(1024, window.width - (window.width * .2))
|
||||||
|
height: Math.min(600, window.height - (window.height * .2))
|
||||||
Item {
|
Item {
|
||||||
Accessible.role: Accessible.Dialog
|
Accessible.role: Accessible.Dialog
|
||||||
Accessible.name: qsTr("Download new models dialog")
|
Accessible.name: qsTr("Download new models dialog")
|
||||||
|
@ -10,8 +10,6 @@ import network
|
|||||||
|
|
||||||
Dialog {
|
Dialog {
|
||||||
id: modelDownloaderDialog
|
id: modelDownloaderDialog
|
||||||
width: 1024
|
|
||||||
height: 600
|
|
||||||
modal: true
|
modal: true
|
||||||
opacity: 0.9
|
opacity: 0.9
|
||||||
closePolicy: LLM.modelList.length === 0 ? Popup.NoAutoClose : (Popup.CloseOnEscape | Popup.CloseOnPressOutside)
|
closePolicy: LLM.modelList.length === 0 ? Popup.NoAutoClose : (Popup.CloseOnEscape | Popup.CloseOnPressOutside)
|
||||||
|
@ -13,8 +13,6 @@ Dialog {
|
|||||||
modal: true
|
modal: true
|
||||||
opacity: 0.9
|
opacity: 0.9
|
||||||
padding: 20
|
padding: 20
|
||||||
width: 1024
|
|
||||||
height: column.height + dialogBox.height + 20
|
|
||||||
|
|
||||||
Theme {
|
Theme {
|
||||||
id: theme
|
id: theme
|
||||||
|
@ -11,8 +11,6 @@ import llm
|
|||||||
Dialog {
|
Dialog {
|
||||||
id: settingsDialog
|
id: settingsDialog
|
||||||
modal: true
|
modal: true
|
||||||
width: 1024
|
|
||||||
height: 600
|
|
||||||
opacity: 0.9
|
opacity: 0.9
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
@ -12,7 +12,6 @@ Dialog {
|
|||||||
modal: true
|
modal: true
|
||||||
opacity: 0.9
|
opacity: 0.9
|
||||||
padding: 20
|
padding: 20
|
||||||
width: 900
|
|
||||||
|
|
||||||
Theme {
|
Theme {
|
||||||
id: theme
|
id: theme
|
||||||
|
Loading…
Reference in New Issue
Block a user