mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 01:50:12 +01:00
This commit is contained in:
parent
edbe4da57e
commit
a5bee1533b
6 changed files with 20 additions and 21 deletions
|
|
@ -47,7 +47,7 @@ export class Wnd {
|
|||
this.element = document.createElement("div");
|
||||
this.element.classList.add("fn__flex-1", "fn__flex");
|
||||
let dragHTML = '<div class="layout-tab-container__drag fn__none"></div>';
|
||||
if (parentType === "left" || parentType === "right" || parentType === "top" || parentType === "bottom") {
|
||||
if (parentType === "left" || parentType === "right" || parentType === "bottom") {
|
||||
dragHTML = "";
|
||||
}
|
||||
this.element.innerHTML = `<div data-type="wnd" data-id="${this.id}" class="fn__flex-column fn__flex fn__flex-1">
|
||||
|
|
@ -657,7 +657,7 @@ export class Wnd {
|
|||
if (this.children.length === 1) {
|
||||
this.destroyModel(this.children[0].model);
|
||||
this.children = [];
|
||||
if (["top", "bottom", "left", "right"].includes(this.parent.type)) {
|
||||
if (["bottom", "left", "right"].includes(this.parent.type)) {
|
||||
item.panelElement.remove();
|
||||
} else {
|
||||
this.remove();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue