mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
🐛 resize backlink
This commit is contained in:
parent
ddc1b09166
commit
974a1cd3cf
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue