From d4c3f159d5a0dd5af91ed7324d813b054809336a Mon Sep 17 00:00:00 2001 From: rene Date: Tue, 14 Apr 2026 16:47:21 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20Karte-H=C3=B6he=20via=20JS,=20events=20L?= =?UTF-8?q?eaflet-Pfad,=20Hamburger-Men=C3=BC=20mobile=20Drawer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/static/css/layout.css | 46 +++++++++++++++++++++++++++++++ backend/static/index.html | 4 +++ backend/static/js/app.js | 39 ++++++++++++++++++++++++++ backend/static/js/pages/events.js | 4 +-- backend/static/js/pages/map.js | 15 ++++++++++ backend/static/sw.js | 2 +- 6 files changed, 107 insertions(+), 3 deletions(-) diff --git a/backend/static/css/layout.css b/backend/static/css/layout.css index ac7d084..443c7fe 100644 --- a/backend/static/css/layout.css +++ b/backend/static/css/layout.css @@ -83,9 +83,55 @@ } .header-back:hover { background: var(--c-surface-2); } +/* Hamburger-Button (nur Mobile) */ +.header-menu-btn { + width: 40px; + height: 40px; + display: flex; + align-items: center; + justify-content: center; + border: none; + background: transparent; + font-size: 1.3rem; + color: var(--c-text); + cursor: pointer; + border-radius: var(--radius-md); + flex-shrink: 0; + -webkit-tap-highlight-color: transparent; +} +.header-menu-btn:hover { background: var(--c-surface-2); } + +/* Backdrop für mobile Sidebar */ +.sidebar-backdrop { + display: none; + position: fixed; + inset: 0; + background: rgba(0,0,0,0.45); + z-index: 499; +} +.sidebar-backdrop.visible { display: block; } + /* Auf Desktop keinen mobilen Header zeigen */ @media (min-width: 768px) { #app-header { display: none; } + .header-menu-btn { display: none; } + .sidebar-backdrop { display: none !important; } +} + +/* Mobile Sidebar als Drawer */ +@media (max-width: 767px) { + #sidebar { + display: flex; + position: fixed; + left: calc(-1 * var(--nav-sidebar-width)); + top: 0; + bottom: 0; + z-index: 500; + transition: left 0.28s ease; + } + #sidebar.open { + left: 0; + } } /* ------------------------------------------------------------ diff --git a/backend/static/index.html b/backend/static/index.html index 93861a4..a26f266 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -39,8 +39,12 @@ Ban Yaro
+ + + +