ui/list & grid view: fix some issues

This commit is contained in:
Adorian Doran 2026-02-23 12:29:28 +02:00
parent fec929dfee
commit 19d2f02694
2 changed files with 2 additions and 2 deletions

View File

@ -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}

View File

@ -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;
}