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(costs): the receipt link is an icon, so the receipts title keeps one line (#2839)

Mauriceeda27f1e5909
diff --git a/client/src/components/Budget/ExpenseReceiptsSection.tsx b/client/src/components/Budget/ExpenseReceiptsSection.tsx
index 02bd8a517..038b6a5a3 100644
--- a/client/src/components/Budget/ExpenseReceiptsSection.tsx
+++ b/client/src/components/Budget/ExpenseReceiptsSection.tsx
@@ -50,16 +50,20 @@ export function ExpenseReceiptsSection({
className={className}
action={
<span className="flex items-center gap-1.5">
+ {/* An icon beside the worded Attach, so the section title keeps its one line. */}
{canLink && (
- <button
- type="button"
- aria-expanded={linking}
- onClick={() => setLinking((v) => !v)}
- className={`${PILL} ${linking ? 'bg-surface-card shadow-sm' : 'bg-surface-tertiary'}`}
- style={fs(11.5)}
- >
- <Link2 size={12} /> {t('files.link')}
- </button>
+ <Tooltip label={t('files.link')}>
+ <button
+ type="button"
+ aria-label={t('files.link')}
+ aria-expanded={linking}
+ onClick={() => setLinking((v) => !v)}
+ className={`${PILL} ${linking ? 'bg-surface-card shadow-sm' : 'bg-surface-tertiary'}`}
+ style={fs(11.5)}
+ >
+ <Link2 size={12} />
+ </button>
+ </Tooltip>
)}
<label className={`${PILL} bg-surface-tertiary`} style={fs(11.5)}>
<input