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/6761

Vanessa35c68276302d
diff --git a/app/src/layout/Wnd.ts b/app/src/layout/Wnd.ts
index c6932096c4..9d9d536bef 100644
--- a/app/src/layout/Wnd.ts
+++ b/app/src/layout/Wnd.ts
@@ -43,9 +43,6 @@ export class Wnd {
this.resize = resize;
this.element = document.createElement("div");
this.element.classList.add("fn__flex-1", "fn__flex");
- if (resize === "tb") {
- this.element.style.minHeight = "64px"
- }
let dragHTML = '<div class="layout-tab-container__drag fn__none"></div>';
if (parentType === "left" || parentType === "right" || parentType === "top" || parentType === "bottom") {
dragHTML = "";
diff --git a/app/src/layout/index.ts b/app/src/layout/index.ts
index 00c7910d80..824a7596ae 100644
--- a/app/src/layout/index.ts
+++ b/app/src/layout/index.ts
@@ -94,6 +94,10 @@ export class Layout {
}
addResize(child);
resizeTabs();
+ // https://ld246.com/article/1669858316295
+ if (this.direction === "tb") {
+ child.element.style.minHeight = "64px"
+ }
child.parent = this;
}
}