Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
ui/list & grid view: fix some issues
Adorian Doran19d2f02694f6
diff --git a/apps/client/src/widgets/collections/legacy/ListOrGridView.tsx b/apps/client/src/widgets/collections/legacy/ListOrGridView.tsxindex c6f869c844..ce93e507a6 100644--- a/apps/client/src/widgets/collections/legacy/ListOrGridView.tsx+++ b/apps/client/src/widgets/collections/legacy/ListOrGridView.tsx@@ -176,7 +176,7 @@ function GridNoteCard(props: GridNoteCardProps) {showNotePath={props.parentNote.type === "search"}highlightedTokens={props.highlightedTokens}/>- {(!props.note.isOptions()) && <NoteMenuButton notePath={notePath} />}+ {!props.note.isOptions() && <NoteMenuButton notePath={notePath} />}</h5><NoteContent note={props.note}diff --git a/apps/client/src/widgets/note_wrapper.ts b/apps/client/src/widgets/note_wrapper.tsindex 10739ae81a..2328608480 100644--- a/apps/client/src/widgets/note_wrapper.ts+++ b/apps/client/src/widgets/note_wrapper.ts@@ -107,7 +107,7 @@ export default class NoteWrapperWidget extends FlexContainer<BasicWidget> {return true;}- if (note.type === "book" && COLLECTIONS_WITH_BACKGROUND_EFFECTS.includes(note.getLabelValue("viewType") ?? "")) {+ if (note.type === "book" && COLLECTIONS_WITH_BACKGROUND_EFFECTS.includes(note.getLabelValue("viewType") ?? "none")) {return true;}