mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-09 16:54:21 +01:00
This commit is contained in:
parent
7de50d33b2
commit
18022971a7
1 changed files with 2 additions and 1 deletions
|
|
@ -41,7 +41,8 @@ export class Dock {
|
|||
break;
|
||||
}
|
||||
this.element = document.getElementById("dock" + options.position);
|
||||
this.element.innerHTML = '<div></div><div class="fn__flex-1"></div><div></div>';
|
||||
const dockClass = (options.position === "Bottom" || options.position === "Top") ? ' class="fn__flex"' : "";
|
||||
this.element.innerHTML = `<div${dockClass}></div><div class="fn__flex-1"></div><div${dockClass}></div>`;
|
||||
this.position = options.position;
|
||||
this.data = {};
|
||||
if (options.data.length === 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue