Skip to content

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

:bug: resize backlink

Vanessa974a1cd3cf31
diff --git a/app/src/layout/util.ts b/app/src/layout/util.ts
index d184db5a30..6ec542d15e 100644
--- a/app/src/layout/util.ts
+++ b/app/src/layout/util.ts
@@ -450,7 +450,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) {
+ if (mTreeElement.style.height && mTreeElement.style.height !== "0px") {
mTreeElement.style.height = (item.element.clientHeight - mTreeElement.previousElementSibling.clientHeight * 2) + "px"
}
})