diff --git a/desktop/qml/HomePage.qml b/desktop/qml/HomePage.qml index d10bef1..5810f7e 100644 --- a/desktop/qml/HomePage.qml +++ b/desktop/qml/HomePage.qml @@ -15,24 +15,10 @@ Kirigami.ScrollablePage { width: ListView.view.width } } - // ListModel { - // id: blah - // - // ListElement { - // name: "blah1" - // } - // ListElement { - // name: "blah2" - // } - // ListElement { - // name: "blah3" - // } - // } ListView { Layout.fillHeight: true Layout.fillWidth: true delegate: listDelegate - //model: blah model: Cartographer.artists } } diff --git a/desktop/qml/PrimaryNavigation.qml b/desktop/qml/PrimaryNavigation.qml index 4892a40..f02907a 100644 --- a/desktop/qml/PrimaryNavigation.qml +++ b/desktop/qml/PrimaryNavigation.qml @@ -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: [