Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix(collections): name a hidden label's class without a leading space prettier strips

Maurice82c6a3cd5f40
diff --git a/client/src/components/Collections/CollectionPlaceTags.tsx b/client/src/components/Collections/CollectionPlaceTags.tsx
index afaecc134..1ce89ef5e 100644
--- a/client/src/components/Collections/CollectionPlaceTags.tsx
+++ b/client/src/components/Collections/CollectionPlaceTags.tsx
@@ -126,7 +126,7 @@ export default function CollectionPlaceTags({
{labels.map((l, i) => (
<ChipTooltip key={l.id} label={l.name}>
<span
- className={`col-lrow-label${i < shown ? '' : ' is-over'}`}
+ className={i < shown ? 'col-lrow-label' : 'col-lrow-label is-over'}
style={{ ['--label' as string]: l.color || 'var(--accent)' }}
aria-hidden={i < shown ? undefined : true}
>