From 77208b857ac6e57371ca48803b753c359584e6f7 Mon Sep 17 00:00:00 2001 From: NuklearRabbit <145918611+NuklearRabbit@users.noreply.github.com> Date: Tue, 4 Aug 2026 03:09:17 +0200 Subject: [PATCH] fix: prevent topbar overflow from an unbreakable Dutch role-name translation Correctly translating auth.json's roleOperationsManager from the old two-word "Operations Manager" (which could wrap at the space) to the single Dutch compound word "Operationsmanager" (which cannot) pushed the topbar's .operator block past its 1024px-breakpoint budget, caught by the existing responsive-i18n.spec.ts overflow test. Fixed with overflow-wrap: anywhere on the role/name text and min-width: 0 on their flex-item wrapper, rather than reverting the correct translation. --- frontend/src/styles.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/styles.css b/frontend/src/styles.css index 2213b0e..7ea6b19 100644 --- a/frontend/src/styles.css +++ b/frontend/src/styles.css @@ -96,9 +96,9 @@ a:hover { color: var(--teal); } .timezone svg { width: 15px; } .operator { display: flex; align-items: center; gap: 9px; padding-left: 17px; border-left: 1px solid var(--line); } .avatar { width: 32px; height: 32px; display: grid; place-items: center; color: white; background: var(--petrol); border-radius: 50%; font-size: .67rem; font-weight: 700; } -.operator > span:last-child { display: grid; gap: 1px; } -.operator strong { font-size: .74rem; } -.operator small { color: var(--muted); font-size: .64rem; } +.operator > span:last-child { display: grid; gap: 1px; min-width: 0; } +.operator strong { font-size: .74rem; overflow-wrap: anywhere; } +.operator small { color: var(--muted); font-size: .64rem; overflow-wrap: anywhere; } .icon-button { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; color: var(--ink-soft); background: transparent; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; } .icon-button:hover { background: var(--surface-subtle); border-color: var(--line); } .icon-button svg { width: 18px; height: 18px; }