This commit is contained in:
Paul 2026-03-22 20:44:06 +01:00
parent 3daea7efd3
commit 1ace668c8f
2 changed files with 8 additions and 2 deletions

View file

@ -474,6 +474,10 @@ export default class FolderNotesPlugin extends Plugin {
folder.path, 'fn-has-attachment-folder',
false, this,
);
addCSSClassToFileExplorerEl(
folder.path, 'fn-has-attachment-folder',
true, this,
);
}
return folder.children.length <= threshold + 1;
}

View file

@ -23,10 +23,11 @@
cursor: pointer !important;
}
.hide-folder-note :not(.show-folder-note-in-explorer).only-has-folder-note .nav-folder-children {
.hide-folder-note :not(.show-folder-note-in-explorer):not(.fn-has-attachment-folder).only-has-folder-note .nav-folder-children {
display: none !important;
}
/* ==========================================================================
Tree Items
========================================================================== */
@ -236,7 +237,7 @@ li:has(.fv-link-list-item),
.fn-has-no-files .collapse-icon,
.fn-hide-collapse-icon .has-folder-note.only-has-folder-note .tree-item-icon,
body.fn-ignore-attachment-folder.fn-hide-collapse-icon .only-has-folder-note .fn-empty-folder.fn-has-attachment-folder .tree-item-icon,
body.fn-hide-collapse-icon.fn-ignore-attachment-folder .only-has-folder-note .fn-empty-folder.fn-has-attachment-folder .tree-item-icon,
body.fn-hide-collapse-icon .only-has-folder-note .fn-empty-folder:not(.fn-has-attachment-folder) .tree-item-icon,
body.fn-hide-empty-collapse-icon :not(.only-has-folder-note) > .fn-empty-folder:not(.fn-has-attachment-folder) .tree-item-icon,
body.fn-hide-collapse-icon.only-has-folder-note:not(.is-collapsed):not(.show-folder-note-in-explorer)>.nav-folder-children {
@ -244,6 +245,7 @@ body.fn-hide-collapse-icon.only-has-folder-note:not(.is-collapsed):not(.show-fol
}
/* ==========================================================================
Settings Tabs
========================================================================== */