chore(react/collections): fix list body

This commit is contained in:
Elian Doran
2025-08-30 19:13:08 +03:00
parent 5f73532d62
commit 98a4a8d8c6

View File

@@ -76,12 +76,12 @@ function ListNoteCard({ note, parentNote, expand, highlightedTokens }: { note: F
<Icon className="note-icon" icon={note.getIcon()} /> <Icon className="note-icon" icon={note.getIcon()} />
<NoteLink className="note-book-title" notePath={notePath} noPreview showNotePath={note.type === "search"} highlightedTokens={highlightedTokens} /> <NoteLink className="note-book-title" notePath={notePath} noPreview showNotePath={note.type === "search"} highlightedTokens={highlightedTokens} />
<NoteAttributes note={note} /> <NoteAttributes note={note} />
</h5>
{isExpanded && <> {isExpanded && <>
<NoteContent note={note} highlightedTokens={highlightedTokens} /> <NoteContent note={note} highlightedTokens={highlightedTokens} />
<NoteChildren note={note} parentNote={parentNote} highlightedTokens={highlightedTokens} /> <NoteChildren note={note} parentNote={parentNote} highlightedTokens={highlightedTokens} />
</>} </>}
</h5>
</div> </div>
) )
} }