From 35c68276302d5b1ff6f9f8d5f0bbebbdbf0db96f Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 1 Dec 2022 22:52:36 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/6761 --- app/src/layout/Wnd.ts | 3 --- app/src/layout/index.ts | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/layout/Wnd.ts b/app/src/layout/Wnd.ts index c6932096c..9d9d536be 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 = '
'; 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 00c7910d8..824a7596a 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; } }