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.

Truncate long place names in file source badges on mobile

Mauricea590db8e10a2
diff --git a/client/src/components/Files/FileManager.jsx b/client/src/components/Files/FileManager.jsx
index 92e2bf4b4..25826ba17 100644
--- a/client/src/components/Files/FileManager.jsx
+++ b/client/src/components/Files/FileManager.jsx
@@ -68,10 +68,10 @@ function SourceBadge({ icon: Icon, label }) {
fontSize: 10.5, color: '#4b5563',
background: 'var(--bg-tertiary)', border: '1px solid var(--border-primary)',
borderRadius: 6, padding: '2px 7px',
- fontWeight: 500, whiteSpace: 'nowrap',
+ fontWeight: 500, maxWidth: '100%', overflow: 'hidden',
}}>
<Icon size={10} style={{ flexShrink: 0, color: 'var(--text-muted)' }} />
- {label}
+ <span style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>{label}</span>
</span>
)
}