From a570dff4e93ca65e33000588a50d552e6fd0dda5 Mon Sep 17 00:00:00 2001 From: Marcel Date: Fri, 27 Mar 2026 16:11:47 +0100 Subject: [PATCH] fix(#95): stack save bar buttons full-width on mobile to prevent text wrap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Long button labels (e.g. German "Speichern & Als überprüft markieren") require ~515px at text-xs tracking-widest — impossible at 320px inline. Both save bars (new document + edit document) now use flex-col on mobile with w-full buttons and flex-row on sm+. Primary actions appear first (top on mobile, right on desktop). Also fixes hardcoded border-gray-300/ text-gray-600 → border-line/text-ink-2 and bg-brand-navy/text-white → bg-primary/text-primary-fg in these two components. Co-Authored-By: Claude Sonnet 4.6 --- .../routes/documents/[id]/edit/SaveBar.svelte | 124 +++++++++--------- .../src/routes/documents/new/+page.svelte | 49 +++---- 2 files changed, 92 insertions(+), 81 deletions(-) diff --git a/frontend/src/routes/documents/[id]/edit/SaveBar.svelte b/frontend/src/routes/documents/[id]/edit/SaveBar.svelte index 56b66d47..17195ce5 100644 --- a/frontend/src/routes/documents/[id]/edit/SaveBar.svelte +++ b/frontend/src/routes/documents/[id]/edit/SaveBar.svelte @@ -7,73 +7,79 @@ let confirmDelete = $state(false);
- -
- {#if confirmDelete} - {m.doc_delete_confirm()} + + +
+ +
- {:else} - - {/if} -
+
- -
- - {m.btn_cancel()} - - - + +
+ {#if confirmDelete} + {m.doc_delete_confirm()} +
+ + +
+ {:else} + + + {m.btn_cancel()} + + {/if} +
diff --git a/frontend/src/routes/documents/new/+page.svelte b/frontend/src/routes/documents/new/+page.svelte index 6699a4c5..5bfd3ccb 100644 --- a/frontend/src/routes/documents/new/+page.svelte +++ b/frontend/src/routes/documents/new/+page.svelte @@ -120,30 +120,35 @@ $effect(() => {
- - {m.btn_cancel()} - -
- - + {m.btn_cancel()} + +
+ + +