fix: drawer overlapping window footer (player bar)

This commit is contained in:
Joshua Strobl 2024-10-28 19:25:11 +02:00
parent 8ff470989b
commit aa8c38af99
2 changed files with 5 additions and 17 deletions

View file

@ -12,14 +12,16 @@ Kirigami.GlobalDrawer {
return width < 800;
}
function onWindowSizeChanged(width) {
drawerOpen = !isMobile(width);
modal = isMobile(width);
const mobile = isMobile(width);
drawerOpen = !mobile;
modal = mobile;
height = mobile ? windowRef.height : windowRef.height - windowRef.footer.height;
}
collapseButtonVisible: false
drawerOpen: !isMobile()
edge: Qt.LeftEdge
height: parent.height
height: parent.height - windowRef.footer.height
modal: false
actions: [