fix: Set app minimum width to 1200

This commit is contained in:
Alex Jbanca 2023-03-14 12:59:51 +02:00 committed by Alex Jbanca
parent 1f3aef3a0b
commit 338ad61093
1 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ StatusWindow {
id: applicationWindow id: applicationWindow
objectName: "mainWindow" objectName: "mainWindow"
minimumWidth: 900 minimumWidth: 1200
minimumHeight: 680 minimumHeight: 680
color: Style.current.background color: Style.current.background
title: { title: {
@ -71,8 +71,8 @@ StatusWindow {
if (visibility === Window.Windowed) { if (visibility === Window.Windowed) {
applicationWindow.x = geometry.x; applicationWindow.x = geometry.x;
applicationWindow.y = geometry.y; applicationWindow.y = geometry.y;
applicationWindow.width = geometry.width; applicationWindow.width = Math.max(geometry.width, applicationWindow.minimumWidth)
applicationWindow.height = geometry.height; applicationWindow.height = Math.max(geometry.height, applicationWindow.minimumHeight)
} }
} }