diff --git a/Drawers/Interactions.qml b/Drawers/Interactions.qml index 7ba6670..553f52b 100644 --- a/Drawers/Interactions.qml +++ b/Drawers/Interactions.qml @@ -132,6 +132,8 @@ CustomMouseArea { if (!inDashboardArea) { root.dashboardShortcutActive = true; } + if (root.panels.launcher.x + root.panels.launcher.width > root.panels.dashboardWrapper.x) + root.visibilities.launcher = false; root.visibilities.settings = false; root.visibilities.sidebar = false; @@ -161,6 +163,11 @@ CustomMouseArea { } if (root.visibilities.launcher) { + if (root.panels.dashboardWrapper.x < root.panels.launcher.x + root.panels.launcher.width) { + console.log("true"); + root.visibilities.dashboard = false; + } + root.visibilities.dock = false; root.visibilities.settings = false; } diff --git a/Modules/Launcher/Wrapper.qml b/Modules/Launcher/Wrapper.qml index 1e8b6d6..84d18ab 100644 --- a/Modules/Launcher/Wrapper.qml +++ b/Modules/Launcher/Wrapper.qml @@ -12,12 +12,11 @@ Item { property int contentHeight readonly property real maxHeight: { let max = screen.height - Appearance.spacing.large * 2; - if (visibilities.resources) + if (visibilities.resources && panels.resourcesWrapper.x + panels.resourcesWrapper.width > root.x) max -= panels.resources.nonAnimHeight; - if (visibilities.dashboard && panels.dashboard.x < root.x + root.implicitWidth) - max -= panels.dashboard.nonAnimHeight; - if (panels.popouts.currentName.startsWith("updates")) - max -= panels.popouts.nonAnimHeight; + if (panels.popouts.hasCurrent) + if (panels.popouts.current.x + panels.popouts.current.width > root.x && panels.popouts.current.x < root.x + root.width) + max -= panels.popouts.nonAnimHeight; return max; } property real offsetScale: shouldBeActive ? 0 : 1 diff --git a/Modules/Resources/Wrapper.qml b/Modules/Resources/Wrapper.qml index a60f898..7a277f5 100644 --- a/Modules/Resources/Wrapper.qml +++ b/Modules/Resources/Wrapper.qml @@ -8,7 +8,7 @@ import qs.Config Item { id: root - readonly property real nonAnimHeight: state === "visible" ? (content.item?.nonAnimHeight ?? 0) : 0 + readonly property real nonAnimHeight: content.item?.nonAnimHeight ?? 0 property real offsetScale: shouldBeActive ? 0 : 1 readonly property bool shouldBeActive: root.visibilities.resources required property PersistentProperties visibilities @@ -31,8 +31,7 @@ Item { id: content active: root.shouldBeActive || root.visible - anchors.bottom: parent.bottom - anchors.horizontalCenter: parent.horizontalCenter + anchors.centerIn: parent sourceComponent: Content { padding: Appearance.padding.normal