From ae9e10d75501baaa7ee703e5032e97a3150955dd Mon Sep 17 00:00:00 2001 From: Hakadao Date: Mon, 2 Oct 2023 17:09:50 +0800 Subject: [PATCH] fix: prevent content shaking during animation --- src/contentScripts/views/App.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/contentScripts/views/App.vue b/src/contentScripts/views/App.vue index 7b2f51e7..3a7d0735 100644 --- a/src/contentScripts/views/App.vue +++ b/src/contentScripts/views/App.vue @@ -507,8 +507,7 @@ function handleAdaptToOtherPageStylesChange() {
@@ -537,7 +536,7 @@ function handleAdaptToOtherPageStylesChange() { - +
@@ -632,11 +631,13 @@ function handleAdaptToOtherPageStylesChange() { .fade-leave-active { transition: opacity 0.5s ease; } - .fade-enter-from, .fade-leave-to { --at-apply: opacity-0; } +.fade-leave-to { + --at-apply: hidden +} .list-enter-active, .list-leave-active { @@ -646,4 +647,7 @@ function handleAdaptToOtherPageStylesChange() { .list-leave-to { --at-apply: opacity-0 transform translate-y-6 transform-gpu; } +.list-leave-to { + --at-apply: hidden +}