ui/list & grid view: correct attribute name

This commit is contained in:
Adorian Doran 2026-02-19 22:20:18 +02:00
parent b4cd66db50
commit 4b098e2008

View File

@ -30,13 +30,13 @@ export function ListView({ note, noteIds: unfilteredNoteIds, highlightedTokens }
const hasCollectionProperties = [ "book", "search" ].includes(noteType ?? ""); const hasCollectionProperties = [ "book", "search" ].includes(noteType ?? "");
return ( return (
<div class="note-list list-view"> <div className="note-list list-view">
<CollectionProperties <CollectionProperties
note={note} note={note}
centerChildren={<Pager {...pagination} />} centerChildren={<Pager {...pagination} />}
/> />
{ noteIds.length > 0 && <div class="note-list-wrapper"> { noteIds.length > 0 && <div className="note-list-wrapper">
{!hasCollectionProperties && <Pager {...pagination} />} {!hasCollectionProperties && <Pager {...pagination} />}
<Card className={clsx("nested-note-list", {"search-results": (noteType === "search")})}> <Card className={clsx("nested-note-list", {"search-results": (noteType === "search")})}>
@ -63,13 +63,13 @@ export function GridView({ note, noteIds: unfilteredNoteIds, highlightedTokens }
const hasCollectionProperties = [ "book", "search" ].includes(noteType ?? ""); const hasCollectionProperties = [ "book", "search" ].includes(noteType ?? "");
return ( return (
<div class="note-list grid-view"> <div className="note-list grid-view">
<CollectionProperties <CollectionProperties
note={note} note={note}
centerChildren={<Pager {...pagination} />} centerChildren={<Pager {...pagination} />}
/> />
<div class="note-list-wrapper"> <div className="note-list-wrapper">
{!hasCollectionProperties && <Pager {...pagination} />} {!hasCollectionProperties && <Pager {...pagination} />}
<div className={clsx("note-list-container use-tn-links", {"search-results": (noteType === "search")})}> <div className={clsx("note-list-container use-tn-links", {"search-results": (noteType === "search")})}>