fix(dock): adjust scaling margins to prevent dock overflow

This commit is contained in:
Hakadao
2025-02-24 11:13:38 +08:00
parent 0ca911430e
commit fa1f676823

View File

@@ -183,8 +183,8 @@ const dockScale = computed((): number => {
if (!dockHeight.value || !dockWidth.value)
return 1
const maxAllowedHeight = windowHeight.value - 100
const maxAllowedWidth = windowWidth.value - 100
const maxAllowedHeight = windowHeight.value - 180
const maxAllowedWidth = windowWidth.value - 180
// Calculate scale factors for both dimensions
const heightScale = dockHeight.value > maxAllowedHeight