From ce8457b2cdf8b35f5f6ec342b65129dbe59dd635 Mon Sep 17 00:00:00 2001 From: Hakadao Date: Mon, 30 Dec 2024 01:03:31 +0800 Subject: [PATCH] fix(dock): update hide styles to use !important for translate properties to ensure consistent visibility behavior --- src/components/Dock/Dock.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Dock/Dock.vue b/src/components/Dock/Dock.vue index 8a5f6db4..c9063f1c 100644 --- a/src/components/Dock/Dock.vue +++ b/src/components/Dock/Dock.vue @@ -360,21 +360,21 @@ const dockTransformStyle = computed((): { transform: string, transformOrigin: st --uno: "left-2 after:right--4px"; } &.left.hide { - --uno: "opacity-0 translate-x--100%"; + --uno: "opacity-0 !translate-x--100%"; } &.right { --uno: "right-2 after:left--4px"; } &.right.hide { - --uno: "opacity-0 translate-x-100%"; + --uno: "opacity-0 !translate-x-100%"; } &.bottom { --uno: "top-unset bottom-0"; } &.bottom.hide { - --uno: "opacity-0 translate-y-100%"; + --uno: "opacity-0 !translate-y-100%"; } .divider {