From d15630a014e31835f66b0b50d9cc1e59ee4f203c Mon Sep 17 00:00:00 2001 From: SayaAndy Date: Wed, 13 Aug 2025 12:05:30 +0700 Subject: fix: mobile page layout overflowing fix: hide sidebar/topbar on gallery maximized --- static/input.css | 10 +++++----- views/layouts/general-page.html | 2 +- views/pages/blog-catalogue.html | 2 +- views/pages/blog-page.html | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/static/input.css b/static/input.css index 69cfa91..aef2d8f 100644 --- a/static/input.css +++ b/static/input.css @@ -154,10 +154,6 @@ background-size: calc(var(--squares-and-triangles-background-width-coef) * 1vw) calc(var(--squares-and-triangles-background-height-coef) * 1vw); } -body:has(.lg-container:not([class~="lg-inline"])) .desktop-sidebar-custom { - display: none !important; -} - .mobile-topbar-custom { width: 90vw; height: 8%; @@ -165,7 +161,7 @@ body:has(.lg-container:not([class~="lg-inline"])) .desktop-sidebar-custom { margin-left: 5vw; } -body:has(.lg-container:not([class~="lg-inline"])) .mobile-topbar-custom { +body:has(.lg-container:not([class~="lg-inline"])) #sidebar { display: none !important; } @@ -444,6 +440,10 @@ body:has(.lg-container:not([class~="lg-inline"])) .mobile-topbar-custom { max-height: 80%; } + .ar-lt-0\.8\:max-h-\[calc\(100\%-25vh\)\] { + max-height: calc(100% - 25vh); + } + .ar-lt-0\.8\:text-\[5vh\] { font-size: 5vh; } diff --git a/views/layouts/general-page.html b/views/layouts/general-page.html index 121a5cd..eab7cd1 100644 --- a/views/layouts/general-page.html +++ b/views/layouts/general-page.html @@ -33,7 +33,7 @@ switchTheme(savedTheme); -
+