mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-17 20:48:06 +01:00
This commit is contained in:
parent
9fd35ab007
commit
44badcad53
9 changed files with 9 additions and 9 deletions
|
|
@ -80,7 +80,7 @@ export const initWindowEvent = (app: App) => {
|
|||
if (scrollTarget && scrollElement) {
|
||||
if ((event.dataTransfer.types.includes(Constants.SIYUAN_DROP_FILE) && hasClosestByClassName(event.target, "layout-tab-bar")) ||
|
||||
(event.dataTransfer.types.includes("Files") && scrollTarget.classList.contains("sy__file")) ||
|
||||
(scrollTarget.classList.contains("protyle") && hasClosestByClassName(event.target, "file-tree"))) {
|
||||
(scrollTarget.classList.contains("protyle") && hasClosestByClassName(event.target, "dockPanel"))) {
|
||||
stopScrollAnimation();
|
||||
} else {
|
||||
dragOverScroll(event, scrollElement.getBoundingClientRect(), scrollElement);
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ export class Backlink extends Model {
|
|||
this.rootId = options.rootId;
|
||||
this.type = options.type;
|
||||
this.element = options.tab.panelElement;
|
||||
this.element.classList.add("fn__flex-column", "file-tree", "sy__backlink");
|
||||
this.element.classList.add("fn__flex-column", "file-tree", "sy__backlink", "dockPanel");
|
||||
const backlinkSort = window.siyuan.config.editor.backlinkSort;
|
||||
const backmentionSort = window.siyuan.config.editor.backmentionSort;
|
||||
this.element.innerHTML = `<div class="block__icons">
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ export class Bookmark extends Model {
|
|||
}
|
||||
});
|
||||
this.element = tab.panelElement;
|
||||
this.element.classList.add("fn__flex-column", "file-tree", "sy__bookmark");
|
||||
this.element.classList.add("fn__flex-column", "file-tree", "sy__bookmark", "dockPanel");
|
||||
this.element.innerHTML = `<div class="block__icons">
|
||||
<div class="block__logo">
|
||||
<svg class="block__logoicon"><use xlink:href="#iconBookmark"></use></svg>${window.siyuan.languages.bookmark}
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ export class Files extends Model {
|
|||
}
|
||||
},
|
||||
});
|
||||
options.tab.panelElement.classList.add("fn__flex-column", "file-tree", "sy__file");
|
||||
options.tab.panelElement.classList.add("fn__flex-column", "file-tree", "sy__file", "dockPanel");
|
||||
options.tab.panelElement.innerHTML = `<div class="block__icons">
|
||||
<div class="block__logo">
|
||||
<svg class="block__logoicon"><use xlink:href="#iconFiles"></use></svg>${window.siyuan.languages.fileTree}
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ export class Graph extends Model {
|
|||
this.rootId = options.rootId;
|
||||
this.type = options.type;
|
||||
|
||||
this.element.classList.add("graph", "file-tree", this.type === "global" ? "sy__globalGraph" : "sy__graph");
|
||||
this.element.classList.add("graph", "file-tree", this.type === "global" ? "sy__globalGraph" : "sy__graph", "dockPanel");
|
||||
let panelHTML;
|
||||
if (this.type === "global") {
|
||||
panelHTML = `
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ export class Inbox extends Model {
|
|||
<div class="fn__flex-1 fn__none inboxDetails fn__flex-column" style="min-height: auto;background-color: var(--b3-theme-background)"></div>
|
||||
<div class="fn__flex-1"></div>`;
|
||||
/// #else
|
||||
this.element.classList.add("fn__flex-column", "file-tree", "sy__inbox");
|
||||
this.element.classList.add("fn__flex-column", "file-tree", "sy__inbox", "dockPanel");
|
||||
this.element.innerHTML = `<div class="block__icons">
|
||||
<div class="block__logo">
|
||||
<svg class="block__logoicon"><use xlink:href="#iconInbox"></use></svg>${window.siyuan.languages.inbox}
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ export class Outline extends Model {
|
|||
this.isPreview = options.isPreview;
|
||||
this.blockId = options.blockId;
|
||||
this.type = options.type;
|
||||
options.tab.panelElement.classList.add("fn__flex-column", "file-tree", "sy__outline");
|
||||
options.tab.panelElement.classList.add("fn__flex-column", "file-tree", "sy__outline", "dockPanel");
|
||||
options.tab.panelElement.innerHTML = `<div class="block__icons fn__hidescrollbar">
|
||||
<div class="block__logo">
|
||||
<svg class="block__logoicon"><use xlink:href="#iconAlignCenter"></use></svg>${window.siyuan.languages.outline}
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ export class Tag extends Model {
|
|||
});
|
||||
|
||||
this.element = tab.panelElement;
|
||||
this.element.classList.add("fn__flex-column", "file-tree", "sy__tag");
|
||||
this.element.classList.add("fn__flex-column", "file-tree", "sy__tag", "dockPanel");
|
||||
|
||||
this.element.innerHTML = `<div class="block__icons">
|
||||
<div class="block__logo">
|
||||
|
|
|
|||
|
|
@ -426,7 +426,7 @@ export class Plugin {
|
|||
getDockByType(type2).toggleModel(type2);
|
||||
}
|
||||
});
|
||||
customObj.element.classList.add("sy__" + type2);
|
||||
customObj.element.classList.add("sy__" + type2, "dockPanel");
|
||||
return customObj;
|
||||
}
|
||||
/// #endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue