mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
This commit is contained in:
parent
ddfc1cbd66
commit
fc665fbf97
1 changed files with 7 additions and 0 deletions
|
|
@ -112,6 +112,13 @@ export class Dock {
|
||||||
|
|
||||||
if (activeElements.length === 0) {
|
if (activeElements.length === 0) {
|
||||||
this.resizeElement.classList.add("fn__none");
|
this.resizeElement.classList.add("fn__none");
|
||||||
|
// 如果没有打开的侧栏,隐藏 layout 的子元素
|
||||||
|
if (this.layout.children.length > 1) {
|
||||||
|
this.layout.children.forEach(child => {
|
||||||
|
child.element.classList.add("fn__none");
|
||||||
|
});
|
||||||
|
this.layout.children[0].element.nextElementSibling?.classList.add("fn__none");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
activeElements.forEach(item => {
|
activeElements.forEach(item => {
|
||||||
this.toggleModel(item.getAttribute("data-type") as TDock, true, false, false, false);
|
this.toggleModel(item.getAttribute("data-type") as TDock, true, false, false, false);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue