From fdaf126e579bfd8c1d0d8addf13f205e0c0656de Mon Sep 17 00:00:00 2001 From: nessi Date: Tue, 3 Feb 2026 10:25:47 +0100 Subject: [PATCH] Refactor and enhance styles across the application This commit tidies up the styles by improving readability, reformatting inline styles, and introducing consistent spacing. It also includes accessibility improvements such as setting input attributes and fixing iOS-specific issues like input zoom and overflow handling. Small UI adjustments and background behavior fixes enhance the overall user experience. --- frontend/src/App.jsx | 464 ++++++++++++++++++++++++++++++------------- 1 file changed, 324 insertions(+), 140 deletions(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 78acf67..95275b9 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -66,14 +66,23 @@ function AdminPanel() { return (
-
+
Admin Dashboard
-
Vorhandene User
+
+ Vorhandene User +
{users.map((u) => (
@@ -88,10 +97,21 @@ function AdminPanel() { {open && (
-
e.stopPropagation()}> +
e.stopPropagation()} + >
-
Neuen User anlegen
- +
+ Neuen User anlegen +
+
@@ -109,15 +129,32 @@ function AdminPanel() { type="password" style={styles.input} /> - setRole(e.target.value)} + style={styles.input} + > {msg &&
{msg}
} -
- +
+
-
- -
- -
- Deine Notizen bleiben privat – jeder Spieler sieht nur seinen eigenen Zettel. +
+ Deine Notizen bleiben privat – jeder Spieler sieht nur seinen eigenen + Zettel. +
-
- ); -} + ); + } + // ===== Main App ===== const sections = sheet ? [ { key: "suspect", title: "VERDÄCHTIGE PERSON", entries: sheet.suspect || [] }, @@ -355,8 +444,8 @@ export default function App() { : []; const getRowBg = (status) => { - if (status === 1) return "rgba(255, 0, 0, 0.06)"; // rot - if (status === 2) return "rgba(0, 170, 60, 0.07)"; // grün + if (status === 1) return "rgba(255, 0, 0, 0.06)"; // rot + if (status === 2) return "rgba(0, 170, 60, 0.07)"; // grün if (status === 3) return "rgba(120, 120, 120, 0.14)"; // grau return "rgba(255,255,255,0.22)"; }; @@ -394,8 +483,12 @@ export default function App() {
- - + +
@@ -405,7 +498,14 @@ export default function App() {
Spiel
-
+