From d59e751c5b7c23f0dce2a146b6b8ced80231a0cb Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Wed, 15 Apr 2026 02:59:58 +1000 Subject: v0.9a --- MainLayout.razor.css | 6 +++++- Pages/Component/MobileMenu.razor.css | 6 +++--- Server.csproj | 4 ++-- wwwroot/js/mobile.js | 8 ++++++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/MainLayout.razor.css b/MainLayout.razor.css index 0ce15c2..c2b5603 100644 --- a/MainLayout.razor.css +++ b/MainLayout.razor.css @@ -1,5 +1,9 @@ -#content { +div#content { flex: 1 1 calc(100vh - 59px); overflow-x: hidden; overflow-y: auto; } + +body.mobile-menu-visible div#content { + display: none; +} diff --git a/Pages/Component/MobileMenu.razor.css b/Pages/Component/MobileMenu.razor.css index b60e07b..0237cf1 100644 --- a/Pages/Component/MobileMenu.razor.css +++ b/Pages/Component/MobileMenu.razor.css @@ -1,6 +1,6 @@ div#mobile-menu { background: var(--col-bg); - display: flex; + display: none; flex-direction: column; flex: 1 1 calc(100vh - 59px); height: 100%; @@ -9,8 +9,8 @@ width: 100%; } -div#mobile-menu.hidden { - display: none; +body.mobile-menu-visible div#mobile-menu { + display: flex; } div#mobile-menu > a { diff --git a/Server.csproj b/Server.csproj index 494ff00..6e4af7d 100644 --- a/Server.csproj +++ b/Server.csproj @@ -6,9 +6,9 @@ enable HyperBooru HyperBooru - 0.8.0.0 + 0.9.0.0 $(AssemblyVersion) - 0.8-alpha + 0.9-alpha 2907567f-4640-4581-8f4d-0977952d26bd diff --git a/wwwroot/js/mobile.js b/wwwroot/js/mobile.js index 769f435..0af11cc 100644 --- a/wwwroot/js/mobile.js +++ b/wwwroot/js/mobile.js @@ -1,3 +1,7 @@ -function toggleMobileMenu() { - document.getElementById("mobile-menu").classList.toggle("hidden"); +function hideMobileMenu() { + document.getElementsByTagName('body')[0].classList.remove('mobile-menu-visible'); +} + +function toggleMobileMenu() { + document.getElementsByTagName('body')[0].classList.toggle('mobile-menu-visible'); } -- cgit v1.3