mirror of
https://github.com/zadam/trilium.git
synced 2026-02-20 12:44:25 +01:00
ui/list & grid view: correct attribute name
This commit is contained in:
parent
b4cd66db50
commit
4b098e2008
@ -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")})}>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user