From 55515f0fb1e47041f5b903b978d0beba57de1666 Mon Sep 17 00:00:00 2001 From: wukko Date: Tue, 25 Jun 2024 14:50:59 +0600 Subject: [PATCH] web/settings: mobile layout, better padding & borders --- .../settings/SettingsCategory.svelte | 2 +- .../settings/SettingsSection.svelte | 7 ++ .../components/settings/SettingsTab.svelte | 57 +++++++++++-- web/src/routes/+layout.svelte | 5 +- web/src/routes/+page.svelte | 4 + web/src/routes/settings/+layout.svelte | 83 +++++++++++++++++-- 6 files changed, 141 insertions(+), 17 deletions(-) diff --git a/web/src/components/settings/SettingsCategory.svelte b/web/src/components/settings/SettingsCategory.svelte index 9707f920..8ccd1cf5 100644 --- a/web/src/components/settings/SettingsCategory.svelte +++ b/web/src/components/settings/SettingsCategory.svelte @@ -16,6 +16,6 @@ .settings-content { display: flex; flex-direction: column; - gap: 16px; + gap: 10px; } diff --git a/web/src/components/settings/SettingsSection.svelte b/web/src/components/settings/SettingsSection.svelte index 61af255d..ad5674fb 100644 --- a/web/src/components/settings/SettingsSection.svelte +++ b/web/src/components/settings/SettingsSection.svelte @@ -25,4 +25,11 @@ color: var(--gray); padding-left: 8px; } + + @media screen and (max-width: 750px) { + #settings-section-categories { + background: var(--button); + border-radius: var(--border-radius); + } + } diff --git a/web/src/components/settings/SettingsTab.svelte b/web/src/components/settings/SettingsTab.svelte index 0da6fc5d..6375ec7b 100644 --- a/web/src/components/settings/SettingsTab.svelte +++ b/web/src/components/settings/SettingsTab.svelte @@ -1,6 +1,8 @@