diff --git a/src/main.py b/src/main.py index ead984c..c348a4a 100644 --- a/src/main.py +++ b/src/main.py @@ -235,7 +235,7 @@ class SecurityHeadersMiddleware(BaseHTTPMiddleware): "script-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net; " "style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdn.jsdelivr.net; " "font-src 'self' https://fonts.gstatic.com; " - "img-src 'self' data: https://tile.openstreetmap.de; " + "img-src 'self' data: https://tile.openstreetmap.de https://tile.openstreetmap.org; " "connect-src 'self' wss: ws:; " "frame-ancestors 'none'" ) diff --git a/src/static/css/style.css b/src/static/css/style.css index e8918c1..fa8e12f 100644 --- a/src/static/css/style.css +++ b/src/static/css/style.css @@ -3584,6 +3584,35 @@ a:hover { transition: background 0.2s, border-color 0.2s; } +/* === Language Switcher === */ +.lang-switcher { + display: flex; + gap: 2px; + background: var(--bg-secondary); + border-radius: var(--radius); + padding: 2px; +} +.lang-btn { + padding: 4px 8px; + border-radius: var(--radius); + font-size: 11px; + font-weight: 600; + letter-spacing: 0.5px; + cursor: pointer; + background: transparent; + color: var(--text-secondary); + border: none; + transition: background 0.15s, color 0.15s; +} +.lang-btn:hover { + color: var(--text-primary); + background: var(--bg-hover); +} +.lang-btn.active { + background: var(--accent); + color: var(--bg-primary); +} + /* === Light Theme Sonderregeln === */ [data-theme="light"] .sidebar { border-right: 1px solid var(--border); diff --git a/src/static/dashboard.html b/src/static/dashboard.html index 41b3100..d0e47e8 100644 --- a/src/static/dashboard.html +++ b/src/static/dashboard.html @@ -3,7 +3,7 @@
- + @@ -19,7 +19,7 @@ - Zum Hauptinhalt springen + Zum Hauptinhalt springen