From 3365511b103eba5a5ea20e0d201d19a343276c79 Mon Sep 17 00:00:00 2001 From: Maurice Date: Fri, 13 Nov 2026 15:28:55 +0100 Subject: [PATCH] fix(bookings): the file buttons of a booking never wrap their label MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "Vorhandene verknüpfen" broke onto two lines in the narrow half of the booking dialog. The labels now truncate instead of wrapping, and the German label is the shorter "Datei verknüpfen", matching "Datei anhängen". --- client/src/components/Planner/BookingFileButtons.tsx | 11 ++++++----- shared/src/i18n/de/help.ts | 2 +- shared/src/i18n/de/reservations.ts | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/client/src/components/Planner/BookingFileButtons.tsx b/client/src/components/Planner/BookingFileButtons.tsx index 7cad39c3f..6314555e9 100644 --- a/client/src/components/Planner/BookingFileButtons.tsx +++ b/client/src/components/Planner/BookingFileButtons.tsx @@ -35,7 +35,7 @@ export function BookingFileButtons({ canAttach, uploading, onAttach, linkable, o const buttonClass = 'bg-surface-secondary border border-edge text-content transition-colors hover:bg-surface-tertiary disabled:cursor-default disabled:opacity-60' const buttonStyle = { - width: '100%', display: 'flex', alignItems: 'center', justifyContent: 'center', gap: 8, padding: '8px 13px', + width: '100%', minWidth: 0, display: 'flex', whiteSpace: 'nowrap', alignItems: 'center', justifyContent: 'center', gap: 8, padding: '8px 13px', borderRadius: 10, fontSize: 'calc(13px * var(--fs-scale-body, 1))', fontWeight: 600, cursor: 'pointer', fontFamily: 'inherit', } as const @@ -43,14 +43,15 @@ export function BookingFileButtons({ canAttach, uploading, onAttach, linkable, o
{canAttach && ( )} {canLink && ( -
+
{open && (