mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-05 04:10:16 +01:00
This commit is contained in:
parent
2cac581630
commit
f2de7bf6e6
7 changed files with 24 additions and 14 deletions
|
|
@ -81,10 +81,14 @@ export class Layout {
|
|||
item.element.classList.add("fn__flex-1");
|
||||
if (this.direction === "lr") {
|
||||
// 向右分屏,左侧文档抖动,移除动画和边距
|
||||
item.element.querySelectorAll(".protyle-wysiwyg").forEach((element: HTMLElement) => {
|
||||
element.style.transition = "none";
|
||||
element.style.paddingRight = "16px";
|
||||
element.style.paddingLeft = "24px";
|
||||
item.element.querySelectorAll(".protyle-content").forEach((element: HTMLElement) => {
|
||||
if (!element.parentElement.classList.contains("fn__none")) {
|
||||
element.classList.remove("protyle-content--transition");
|
||||
const wysiwygElement = element.querySelector(".protyle-wysiwyg") as HTMLElement;
|
||||
wysiwygElement.style.paddingRight = "16px";
|
||||
wysiwygElement.style.paddingLeft = "24px";
|
||||
element.classList.add("protyle-content--transition");
|
||||
}
|
||||
});
|
||||
}
|
||||
item.element.after(child.element);
|
||||
|
|
|
|||
|
|
@ -625,9 +625,7 @@ export const addResize = (obj: Layout | Wnd) => {
|
|||
const documentSelf = document;
|
||||
const nextElement = resizeElement.nextElementSibling as HTMLElement;
|
||||
const previousElement = resizeElement.previousElementSibling as HTMLElement;
|
||||
nextElement.style.transition = "";
|
||||
nextElement.style.overflow = "auto"; // 拖动时 layout__resize 会出现 https://github.com/siyuan-note/siyuan/issues/6221
|
||||
previousElement.style.transition = "";
|
||||
previousElement.style.overflow = "auto";
|
||||
setSize(nextElement, direction);
|
||||
setSize(previousElement, direction);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue