🐛 resize backlink

This commit is contained in:
Vanessa 2022-10-19 20:38:42 +08:00
parent ddc1b09166
commit 974a1cd3cf

View file

@ -450,7 +450,7 @@ export const resizeTabs = () => {
// https://github.com/siyuan-note/siyuan/issues/6250 // https://github.com/siyuan-note/siyuan/issues/6250
models.backlink.forEach(item => { models.backlink.forEach(item => {
const mTreeElement = item.element.querySelector(".backlinkMList") as HTMLElement; 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" mTreeElement.style.height = (item.element.clientHeight - mTreeElement.previousElementSibling.clientHeight * 2) + "px"
} }
}) })