fix: launcher dash exclusion

This commit is contained in:
2 * r + 2 * t 2026-05-06 19:52:08 +10:00
parent 1b5e931ec8
commit 7c78781727
3 changed files with 4 additions and 10 deletions

View file

@ -27,7 +27,7 @@ Item {
}
}
readonly property real nonAnimHeight: state === "visible" ? ((content.item as Content)?.nonAnimHeight ?? 0) : 0
readonly property real nonAnimHeight: (content.item as Content)?.nonAnimHeight ?? 0
readonly property bool shouldBeActive: visibilities.dashboard && Config.dashboard.enabled
property real offsetScale: shouldBeActive ? 0 : 1

View file

@ -154,18 +154,12 @@ Item {
Behavior on implicitWidth {
enabled: root.visibilities.launcher
Anim {
duration: Tokens.anim.durations.large
easing: Tokens.anim.emphasizedDecel
}
Anim {}
}
Behavior on implicitHeight {
enabled: root.visibilities.launcher
Anim {
duration: Tokens.anim.durations.large
easing: Tokens.anim.emphasizedDecel
}
Anim {}
}
}

View file

@ -16,7 +16,7 @@ Item {
readonly property bool shouldBeActive: visibilities.launcher && Config.launcher.enabled
readonly property real maxHeight: {
let max = screen.height - Config.border.thickness * 2 - Tokens.spacing.largeIncreased;
let max = screen.height - Config.border.thickness * 2 + Tokens.padding.large;
if (visibilities.dashboard)
max -= panels.dashboard.nonAnimHeight;
return max;