1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

Fix dock hide with padding

This commit is contained in:
bbedward
2025-10-04 08:17:41 -04:00
parent 52373a3a7d
commit 4758393cc1

View File

@@ -264,19 +264,21 @@ Variants {
x: {
if (!dock.isVertical) return 0
if (dock.reveal) return 0
const hideDistance = 58 + SettingsData.dockSpacing + SettingsData.dockBottomGap + 10
if (SettingsData.dockPosition === SettingsData.Position.Right) {
return 60
return hideDistance
} else {
return -60
return -hideDistance
}
}
y: {
if (dock.isVertical) return 0
if (dock.reveal) return 0
const hideDistance = 58 + SettingsData.dockSpacing + SettingsData.dockBottomGap + 10
if (SettingsData.dockPosition === SettingsData.Position.Bottom) {
return 60
return hideDistance
} else {
return -60
return -hideDistance
}
}