Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: fix https://github.com/siyuan-note/siyuan/issues/9004

Vanessa6172a5f8923a
diff --git a/app/src/assets/scss/protyle/_wysiwyg.scss b/app/src/assets/scss/protyle/_wysiwyg.scss
index d23ee1f169..bf4fba002b 100644
--- a/app/src/assets/scss/protyle/_wysiwyg.scss
+++ b/app/src/assets/scss/protyle/_wysiwyg.scss
@@ -466,6 +466,10 @@
}
}
+ &--animate {
+ animation: scale 0.3s ease-in-out;
+ }
+
[data-type="backslash"] span {
display: none;
}
diff --git a/app/src/assets/scss/util/_keyframes.scss b/app/src/assets/scss/util/_keyframes.scss
index a082e97b94..c41c8906d1 100644
--- a/app/src/assets/scss/util/_keyframes.scss
+++ b/app/src/assets/scss/util/_keyframes.scss
@@ -40,6 +40,18 @@
}
}
+@keyframes scale {
+ 0% {
+ transform: scaleY(1.3);
+ transform-origin: 0 0;
+ opacity: 0;
+ }
+
+ 100% {
+ transform: scaleY(1);
+ }
+}
+
@keyframes stripMove {
0% {
background-position: 0 0;
diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts
index 2a5395a31a..8f7ab09c5b 100644
--- a/app/src/menus/protyle.ts
+++ b/app/src/menus/protyle.ts
@@ -626,6 +626,11 @@ export const zoomOut = (options: {
});
return;
}
+ } else {
+ options.protyle.wysiwyg.element.classList.add("protyle-wysiwyg--animate");
+ setTimeout(() => {
+ options.protyle.wysiwyg.element.classList.remove("protyle-wysiwyg--animate");
+ }, 365);
}
/// #if !MOBILE
if (options.protyle.model) {