mirror of
https://github.com/lostpaul/obsidian-folder-notes.git
synced 2026-07-22 07:40:24 +00:00
Merge pull request #299 from stdword/stdword-patch-1
make.md plugin integration
This commit is contained in:
commit
47c6490ba9
2 changed files with 18 additions and 2 deletions
|
|
@ -44,7 +44,17 @@ export function getFileExplorer(
|
|||
plugin: FolderNotesPlugin | FolderOverviewPlugin,
|
||||
): FileExplorerWorkspaceLeaf {
|
||||
// eslint-disable-next-line max-len
|
||||
const leaf = plugin.app.workspace.getLeavesOfType('file-explorer')[0] as unknown as FileExplorerWorkspaceLeaf;
|
||||
let leaf = plugin.app.workspace.getLeavesOfType('file-explorer')[0] as unknown as FileExplorerWorkspaceLeaf;
|
||||
|
||||
/* make.md plugin integration */
|
||||
if (leaf.containerEl.lastChild.dataset.type == 'mk-path-view') {
|
||||
plugin.app.workspace.iterateAllLeaves((x) => {
|
||||
if (x.tabHeaderEl.dataset.type == 'file-explorer') {
|
||||
leaf = x;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return leaf;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,12 @@
|
|||
display: none;
|
||||
}
|
||||
|
||||
/* make.md plugin integration */
|
||||
.hide-folder-note .mk-tree-node > .mk-tree-wrapper > .dropzone > .mk-tree-item.is-folder-note {
|
||||
opacity: 40%;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.pointer-cursor,
|
||||
.has-folder-note .nav-folder-title-content:hover,
|
||||
.has-folder-note.view-header-breadcrumb:hover,
|
||||
|
|
@ -337,4 +343,4 @@ body.fn-hide-collapse-icon.only-has-folder-note:not(.is-collapsed):not(.show-fol
|
|||
.is-phone .fn-overview-folder-path .setting-item-control {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue