Skip to content

Build your personal knowledge base with Trilium Notes

client/icon pack/preview: disable the note list widget for icon packs

Adorian Doran9774c4ec4931
diff --git a/apps/client/src/components/note_context.ts b/apps/client/src/components/note_context.ts
index e9452d6b79..c047988cac 100644
--- a/apps/client/src/components/note_context.ts
+++ b/apps/client/src/components/note_context.ts
@@ -462,6 +462,12 @@ class NoteContext extends Component implements EventListener<"entitiesReloaded">
return false;
}
+ // Icon packs render their glyph-grid preview across the whole pane; a children overview below it
+ // would be out of place.
+ if (note.isIconPack()) {
+ return false;
+ }
+
if (note.isLabelTruthy("hideChildrenOverview")) {
return false;
}