Skip to content

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

:art: 面板固定时拖拽过慢

Vanessac4bad8cf443c
diff --git a/app/src/layout/util.ts b/app/src/layout/util.ts
index fd9929c3d4..e31fd5f546 100644
--- a/app/src/layout/util.ts
+++ b/app/src/layout/util.ts
@@ -819,6 +819,8 @@ export const addResize = (obj: Layout | Wnd) => {
const previousElement = resizeElement.previousElementSibling as HTMLElement;
nextElement.style.overflow = "auto"; // 拖动时 layout__resize 会出现 https://github.com/siyuan-note/siyuan/issues/6221
previousElement.style.overflow = "auto";
+ nextElement.style.transition = "none";
+ previousElement.style.transition = "none";
if (!nextElement.nextElementSibling || nextElement.nextElementSibling.classList.contains("layout__dockresize")) {
setSize(nextElement, direction);
} else {
@@ -886,6 +888,8 @@ export const addResize = (obj: Layout | Wnd) => {
}
nextElement.style.overflow = "";
previousElement.style.overflow = "";
+ nextElement.style.transition = "";
+ previousElement.style.transition = "";
};
});
};