From f8cd808c2d2762f515a4c510a00195ec9f12dab6 Mon Sep 17 00:00:00 2001 From: irrlicht Date: Sat, 10 Oct 2026 12:05:15 +0200 Subject: [PATCH] =?UTF-8?q?Navigation:=20Seitenleiste=20schwebt=20=C3=BCbe?= =?UTF-8?q?r=20dem=20linken=20Rand?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Auf dem Desktop reserviert die Seitenleiste keine Fläche mehr; die Inhaltsspalte bleibt in der Seitenmitte und rückt nur nach rechts, wenn sie sonst unter der Leiste läge. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01TiXsPUqw7oeomZ8wZrQW5q --- frontend/src/app.css | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/frontend/src/app.css b/frontend/src/app.css index 123cdcb..864699f 100644 --- a/frontend/src/app.css +++ b/frontend/src/app.css @@ -233,10 +233,6 @@ h2 { } @media (min-width: 900px) { - .page { - margin-left: 15rem; - } - .mobile-only, #tabbar, .backdrop { @@ -246,12 +242,22 @@ h2 { /* --- Inhaltsspalte --- */ main { - max-width: 600px; + --main-w: 600px; + max-width: var(--main-w); margin: auto; } main.wide { - max-width: 1200px; + --main-w: 1200px; +} + +/* Desktop: die Seitenleiste schwebt über dem linken Rand und reserviert keine + Fläche. Die Spalte bleibt in der Seitenmitte und rückt nur nach rechts, wenn + sie sonst unter der Leiste (15rem) läge. */ +@media (min-width: 900px) { + main { + margin-left: max(16rem, (100% - var(--main-w)) / 2); + } } main > section,