Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/17559

Vanessa5c43e082d54b
diff --git a/app/src/layout/Wnd.ts b/app/src/layout/Wnd.ts
index e09017af26..1348eb9cb6 100644
--- a/app/src/layout/Wnd.ts
+++ b/app/src/layout/Wnd.ts
@@ -993,6 +993,7 @@ export class Wnd {
this.parent.direction = direction;
if (direction === "tb") {
this.parent.element.classList.add("fn__flex-column");
+ this.parent.element.style.minHeight = "8px";
this.parent.element.classList.remove("fn__flex");
} else {
this.parent.element.classList.remove("fn__flex-column");
diff --git a/app/src/layout/util.ts b/app/src/layout/util.ts
index a60e7b6a39..d68997a60d 100644
--- a/app/src/layout/util.ts
+++ b/app/src/layout/util.ts
@@ -937,6 +937,13 @@ export const adjustLayout = (layout: Layout = window.siyuan.layout.centerLayout.
} else {
item.element.style.minWidth = "";
}
+
+ if (!item.element.style.height && !item.element.classList.contains("layout__center") &&
+ item.element.classList.contains("fn__flex-column")) {
+ item.element.style.minHeight = "8px";
+ } else {
+ item.element.style.minHeight = "";
+ }
});
if (layout.direction === "lr" && layout.element.scrollWidth > layout.element.clientWidth + 2) {
let index = Math.ceil(screen.width / 8);