From c67abdad55cfcf4ee347514ea1c231365d1f5cd3 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 22 Mar 2025 11:55:45 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/14379 --- app/src/assets/scss/protyle/_wysiwyg.scss | 2 +- app/src/assets/scss/util/_keyframes.scss | 6 +++--- app/src/protyle/ui/initUI.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/assets/scss/protyle/_wysiwyg.scss b/app/src/assets/scss/protyle/_wysiwyg.scss index 30e4f8503..23379251f 100644 --- a/app/src/assets/scss/protyle/_wysiwyg.scss +++ b/app/src/assets/scss/protyle/_wysiwyg.scss @@ -553,7 +553,7 @@ } &--animate { - animation: scale .3s ease-in-out; + animation: bottom2Top .3s ease-in-out; } div[data-type="NodeMathBlock"] { diff --git a/app/src/assets/scss/util/_keyframes.scss b/app/src/assets/scss/util/_keyframes.scss index e6ade24f7..62051ab79 100644 --- a/app/src/assets/scss/util/_keyframes.scss +++ b/app/src/assets/scss/util/_keyframes.scss @@ -50,15 +50,15 @@ } } -@keyframes scale { +@keyframes bottom2Top { 0% { - transform: scaleY(1.3); + transform: translateY(60px); transform-origin: 0 0; opacity: 0; } 100% { - transform: scaleY(1); + transform: translateY(0); } } diff --git a/app/src/protyle/ui/initUI.ts b/app/src/protyle/ui/initUI.ts index ad9eedea2..aeb1e8c2c 100644 --- a/app/src/protyle/ui/initUI.ts +++ b/app/src/protyle/ui/initUI.ts @@ -172,7 +172,7 @@ export const initUI = (protyle: IProtyle) => { focusByRange(range); } } - }) + }); }); let overAttr = false; protyle.element.addEventListener("mouseover", (event: KeyboardEvent & { target: HTMLElement }) => {