Skip to content

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

:bug: fix https://github.com/siyuan-note/siyuan/issues/7029

Vanessa8c0c1185e72e
diff --git a/app/src/layout/util.ts b/app/src/layout/util.ts
index 4a74f5fef0..51eab5dda2 100644
--- a/app/src/layout/util.ts
+++ b/app/src/layout/util.ts
@@ -460,7 +460,7 @@ export const resizeTabs = () => {
// https://github.com/siyuan-note/siyuan/issues/6250
models.backlink.forEach(item => {
const mTreeElement = item.element.querySelector(".backlinkMList") as HTMLElement;
- if (mTreeElement.style.height && mTreeElement.style.height !== "0px") {
+ if (mTreeElement.style.height && mTreeElement.style.height !== "0px" && item.element.clientHeight !== 0) {
mTreeElement.style.height = (item.element.clientHeight - mTreeElement.previousElementSibling.clientHeight * 2) + "px";
}
item.editors.forEach(editorItem => {