mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
This commit is contained in:
parent
fc9df791e2
commit
b64e17242c
1 changed files with 3 additions and 2 deletions
|
|
@ -414,7 +414,8 @@ export const resizeDrag = () => {
|
||||||
const dragElement = document.getElementById("drag");
|
const dragElement = document.getElementById("drag");
|
||||||
const width = dragElement.clientWidth;
|
const width = dragElement.clientWidth;
|
||||||
const left = dragElement.getBoundingClientRect().left;
|
const left = dragElement.getBoundingClientRect().left;
|
||||||
const right = document.querySelector("#windowControls").clientWidth + document.querySelector("#barSearch").clientWidth * 4;
|
const windowWidth = document.querySelector("#windowControls").clientWidth;
|
||||||
|
const right = (windowWidth ? windowWidth : 5) + document.querySelector("#barSearch").clientWidth * 4;
|
||||||
if (left > right && left - right < width) {
|
if (left > right && left - right < width) {
|
||||||
dragElement.style.paddingRight = (left - right) + "px";
|
dragElement.style.paddingRight = (left - right) + "px";
|
||||||
} else if (left < right && right - left < width) {
|
} else if (left < right && right - left < width) {
|
||||||
|
|
@ -449,7 +450,7 @@ export const resizeTabs = () => {
|
||||||
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 = (item.element.clientHeight - mTreeElement.previousElementSibling.clientHeight * 2) +"px"
|
mTreeElement.style.height = (item.element.clientHeight - mTreeElement.previousElementSibling.clientHeight * 2) + "px"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
pdfResize();
|
pdfResize();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue