1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-06-07 19:59:14 -04:00

refactor: update KeybindsModal dynamic sizing

This commit is contained in:
purian23
2026-06-05 23:17:14 -04:00
parent bf3ce6deb2
commit e7ccb702a3
+2 -2
View File
@@ -14,8 +14,8 @@ DankModal {
useOverlayLayer: true useOverlayLayer: true
property real scrollStep: 60 property real scrollStep: 60
property var activeFlickable: null property var activeFlickable: null
property real _maxW: Math.min(Screen.width * 0.92, 1200) property real _maxW: Math.min(root.screenWidth * 0.92, 1200)
property real _maxH: Math.min(Screen.height * 0.92, 900) property real _maxH: Math.min(root.screenHeight * 0.92, 900)
modalWidth: _maxW modalWidth: _maxW
modalHeight: _maxH modalHeight: _maxH
onBackgroundClicked: close() onBackgroundClicked: close()