From 2e160b93fd01b07cefa335910f7f890e22d52755 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 18 Oct 2022 23:45:15 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/6250 --- app/src/layout/util.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/src/layout/util.ts b/app/src/layout/util.ts index 463df5cb1..b1027f91e 100644 --- a/app/src/layout/util.ts +++ b/app/src/layout/util.ts @@ -445,6 +445,13 @@ 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 = (item.element.clientHeight - mTreeElement.previousElementSibling.clientHeight * 2) +"px" + } + }) pdfResize(); }, 200); };