mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
This commit is contained in:
parent
e4af249f84
commit
74069aa50f
2 changed files with 2 additions and 2 deletions
|
|
@ -345,7 +345,7 @@ export class Dock {
|
|||
break;
|
||||
case "Top":
|
||||
if (index === 0) {
|
||||
direct = "e";
|
||||
direct = "se";
|
||||
} else {
|
||||
direct = "sw";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -403,7 +403,7 @@ export const layoutToJSON = (layout: Layout | Wnd | Tab | Model, json: any) => {
|
|||
|
||||
export const resizeDrag = () => {
|
||||
const dragElement = document.getElementById("drag");
|
||||
const right = dragElement.getBoundingClientRect().left - document.querySelector("#windowControls").clientWidth;
|
||||
const right = dragElement.getBoundingClientRect().left - document.querySelector("#windowControls").clientWidth - document.querySelector("#barSearch").clientWidth * 4;
|
||||
if (right < dragElement.clientWidth) {
|
||||
dragElement.style.paddingRight = right + "px";
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue