From 280213c11ddfb1fd86ac63dad34a4450f8fb9d9c Mon Sep 17 00:00:00 2001 From: rene Date: Tue, 26 May 2026 14:03:09 +0200 Subject: [PATCH] =?UTF-8?q?UX:=20Rechnungs-Modal=20Footer=20f=C3=BCr=20Mob?= =?UTF-8?q?ile,=20SW=20by-v1076?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Footer-Layout neu strukturiert — kein Umbruch-Chaos mehr: - Erste Zeile: Abbrechen | Speichern (Grid 1fr 1fr, gleich breit) oder bei sent/paid nur 'Schließen' volle Breite - Zweite Zeile (wenn vorhanden): Stornieren als volle Breite, ghost-Style mit rotem Rand — destruktive Aktion klar getrennt - Button-Text 'Änderungen speichern' → 'Speichern' (kein Abschneiden mehr auf iPhone) --- backend/main.py | 2 +- backend/static/index.html | 14 +++++++------- backend/static/js/app.js | 2 +- backend/static/js/pages/admin.js | 26 +++++++++++++------------- backend/static/sw.js | 2 +- 5 files changed, 23 insertions(+), 23 deletions(-) diff --git a/backend/main.py b/backend/main.py index 5f2cd38..f22fee0 100644 --- a/backend/main.py +++ b/backend/main.py @@ -410,7 +410,7 @@ async def serve_media(path: str, request: _Request): raise _HE(404, "Nicht gefunden.") return _media_response(filepath) -APP_VER = "1075" # muss mit APP_VER in app.js übereinstimmen +APP_VER = "1076" # muss mit APP_VER in app.js übereinstimmen @app.get("/.well-known/assetlinks.json") async def assetlinks(): diff --git a/backend/static/index.html b/backend/static/index.html index 277a855..8cef0ca 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -101,9 +101,9 @@ - - - + + + @@ -616,10 +616,10 @@ - - - - + + + + diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 011701e..553740b 100644 --- a/backend/static/js/app.js +++ b/backend/static/js/app.js @@ -3,7 +3,7 @@ Router, State-Management, Navigation, Initialisierung. ============================================================ */ -const APP_VER = '1075'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '1076'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.6.0'; // ← semantische Version, wird bei make release gesetzt const IS_STAGING = location.hostname === 'staging.banyaro.app'; // Cache-Bust-Parameter nach Update-Reload sofort entfernen. diff --git a/backend/static/js/pages/admin.js b/backend/static/js/pages/admin.js index e83dda2..311f104 100644 --- a/backend/static/js/pages/admin.js +++ b/backend/static/js/pages/admin.js @@ -4046,20 +4046,20 @@ window.Page_admin = (() => { `, footer: ` -
-
- ${canCancel ? ` - ` : ''} -
-
- - ${!isLocked ? `` + : `
+ + +
`} + ${canCancel ? ` + ` : ''} -
`, }); diff --git a/backend/static/sw.js b/backend/static/sw.js index 50cba78..114fc2d 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -4,7 +4,7 @@ ============================================================ */ // ← EINZIGE Stelle für die Version — STATIC_ASSETS und CACHE_VERSION leiten sich ab -const VER = '1075'; +const VER = '1076'; const CACHE_VERSION = `by-v${VER}`; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten