Skip to content

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

:bug: Support splitting database row tabs https://github.com/siyuan-note/siyuan/issues/18321

Daniel1c6326278c7b
diff --git a/app/src/layout/index.ts b/app/src/layout/index.ts
index 9e019495d2..4050873c57 100644
--- a/app/src/layout/index.ts
+++ b/app/src/layout/index.ts
@@ -85,9 +85,10 @@ export class Layout {
if (this.direction === "lr") {
// 向右分屏,左侧文档抖动,移除动画和边距
item.element.querySelectorAll(".protyle-content").forEach((element: HTMLElement) => {
- if (!element.parentElement.classList.contains("fn__none")) {
+ const wysiwygElement = element.querySelector<HTMLElement>(".protyle-wysiwyg");
+ if (wysiwygElement && !element.parentElement.classList.contains("fn__none")) {
element.classList.remove("protyle-content--transition");
- (element.querySelector(".protyle-wysiwyg") as HTMLElement).style.padding = "";
+ wysiwygElement.style.padding = "";
element.classList.add("protyle-content--transition");
}
});