From dd1f9b512ff288e2442d9a3bb250ce4e753d667a Mon Sep 17 00:00:00 2001 From: wukko Date: Tue, 25 Jun 2024 00:11:04 +0600 Subject: [PATCH] web/settings: change the layout on mobile screen --- web/src/routes/settings/+layout.svelte | 35 +++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/web/src/routes/settings/+layout.svelte b/web/src/routes/settings/+layout.svelte index 266f030a..9df4b374 100644 --- a/web/src/routes/settings/+layout.svelte +++ b/web/src/routes/settings/+layout.svelte @@ -1,4 +1,6 @@ - + +
-
+

settings

-
+
@@ -91,4 +100,24 @@ #settings-navigation { gap: 12px; } + + .hidden-mobile { + display: none !important; + } + + @media screen and (max-width: 750px) { + #settings-page { + --settings-nav-width: 100%; + grid-template-columns: 1fr; + } + + #settings-sidebar { + display: none; + } + + #settings-sidebar.visible-mobile { + display: flex; + } + } +