mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 00:50:13 +01:00
🚨
This commit is contained in:
parent
349c45d137
commit
9ddd1c4674
6 changed files with 11 additions and 14 deletions
|
|
@ -412,8 +412,8 @@ export const layoutToJSON = (layout: Layout | Wnd | Tab | Model, json: any) => {
|
|||
|
||||
export const resizeDrag = () => {
|
||||
const dragElement = document.getElementById("drag");
|
||||
const width = dragElement.clientWidth
|
||||
const left = dragElement.getBoundingClientRect().left
|
||||
const width = dragElement.clientWidth;
|
||||
const left = dragElement.getBoundingClientRect().left;
|
||||
const right = document.querySelector("#windowControls").clientWidth + document.querySelector("#barSearch").clientWidth * 4;
|
||||
if (left > right && left - right < width) {
|
||||
dragElement.style.paddingRight = (left - right) + "px";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue