mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 00:50:13 +01:00
This commit is contained in:
parent
44e43d620a
commit
efaa544973
3 changed files with 14 additions and 7 deletions
|
|
@ -394,6 +394,16 @@ 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
|
||||
if (right < dragElement.clientWidth) {
|
||||
dragElement.style.paddingRight = right + "px";
|
||||
} else {
|
||||
dragElement.style.paddingRight = "";
|
||||
}
|
||||
}
|
||||
|
||||
export const resizeTabs = () => {
|
||||
const models = getAllModels();
|
||||
models.editor.forEach((item) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue