+
{entitySelection ? (
@@ -114,6 +112,8 @@ function NoteListInner({ entries, selection, selectedNote, noteListFilter, onNot
)}
{isChangesView && deletedCount > 0 &&
}
+ {showFilterPills &&
}
+ {isInboxView && onInboxPeriodChange &&
}
{multiSelect.isMultiSelecting && (
diff --git a/src/components/note-list/FilterPills.tsx b/src/components/note-list/FilterPills.tsx
index c3a3bb9f..abdf827d 100644
--- a/src/components/note-list/FilterPills.tsx
+++ b/src/components/note-list/FilterPills.tsx
@@ -5,6 +5,7 @@ interface FilterPillsProps {
active: NoteListFilter
counts: Record
onChange: (filter: NoteListFilter) => void
+ position?: 'top' | 'bottom'
}
const PILLS: { value: NoteListFilter; label: string }[] = [
@@ -13,9 +14,18 @@ const PILLS: { value: NoteListFilter; label: string }[] = [
{ value: 'trashed', label: 'Trashed' },
]
-function FilterPillsInner({ active, counts, onChange }: FilterPillsProps) {
+const BOTTOM_GRADIENT = 'linear-gradient(to bottom, transparent 0%, var(--card, #fff) 30%, var(--card, #fff) 100%)'
+
+function FilterPillsInner({ active, counts, onChange, position = 'top' }: FilterPillsProps) {
+ const isBottom = position === 'bottom'
return (
-
+
{PILLS.map(({ value, label }) => (