From 520ac6b29ffa98083613acecd25079097782f1fe Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 9 May 2026 11:53:28 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/10749 --- app/src/layout/tabUtil.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/src/layout/tabUtil.ts b/app/src/layout/tabUtil.ts index af72c7f7a..bcf441b96 100644 --- a/app/src/layout/tabUtil.ts +++ b/app/src/layout/tabUtil.ts @@ -52,6 +52,10 @@ export const setTabPosition = (onlyPadding = false) => { } wndsTemp.forEach(item => { const headerElement = item.headersElement.parentElement; + // empty + if (headerElement.classList.contains("fn__none")) { + headerElement.classList.remove("fn__none"); + } const headerRect = headerElement.getBoundingClientRect(); headerElement.style.paddingLeft = ""; (headerElement.lastElementChild as HTMLElement).style.marginRight = ""; @@ -96,11 +100,6 @@ export const setTabPosition = (onlyPadding = false) => { (item.element.querySelector(".layout-tab-container") as HTMLElement).style.backgroundColor = ""; const dragElement = headerElement.querySelector(".item--readonly .fn__flex-1") as HTMLElement; if (headerRect.top <= 0) { - // empty - if (headerElement.classList.contains("fn__none")) { - (item.element.querySelector(".layout-tab-container") as HTMLElement).style.backgroundColor = "transparent"; - return; - } // header transparent item.element.classList.add("layout__wnd--center"); if (!isWindowMode) {