diff --git a/apps/app/src/library/FilterBar.tsx b/apps/app/src/library/FilterBar.tsx index be533c6..2b3662f 100644 --- a/apps/app/src/library/FilterBar.tsx +++ b/apps/app/src/library/FilterBar.tsx @@ -10,14 +10,14 @@ const COLORS = ["RED", "YELLOW", "GREEN", "BLUE", "PURPLE"] as const satisfies r const chip = (on: boolean) => (on ? "font-semibold text-ink" : "text-faint hover:text-muted"); /** - * Photo Mechanic / Lightroom style filter bar: flag, stars (at least), colour, delivery state and photos without - * players, all combinable. Clicking an active stars or colour choice again turns it off. + * Flag, stars (at least) and colour, plus delivery and photos without players on the grid. All combinable. + * The filmstrip uses `compact`: flag, stars and colour only. Clicking an active stars or colour choice again turns it off. */ -export function FilterBar(props: { filter: LibraryFilter; onChange: (f: LibraryFilter) => void }) { - const { filter: f, onChange } = props; +export function FilterBar(props: { filter: LibraryFilter; onChange: (f: LibraryFilter) => void; compact?: boolean }) { + const { filter: f, onChange, compact = false } = props; const set = (patch: Partial) => onChange({ ...f, ...patch }); return ( -
+
{t.filter}: {FLAGS.map((flag) => (