From 95002fcda496969b20556014e0421c8ccfef5b80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Szu=C5=82a?= Date: Fri, 25 Oct 2024 23:20:46 +0200 Subject: [PATCH] RWD fixes --- src/app.css | 6 + src/lib/components/ControlButtons.svelte | 9 +- src/lib/components/Footer.svelte | 2 +- src/lib/components/Header.svelte | 41 ++---- src/lib/components/HeaderGitHubButton.svelte | 20 +++ src/lib/components/HeaderSoundControl.svelte | 122 +++++++++--------- src/lib/components/HeaderThemeControl.svelte | 65 +++++----- .../mobile/MobileAlgorithmSelector.svelte | 23 ++++ .../mobile/MobileHeaderButtons.svelte | 45 +++++++ src/routes/+page.svelte | 12 +- 10 files changed, 215 insertions(+), 130 deletions(-) create mode 100644 src/lib/components/HeaderGitHubButton.svelte create mode 100644 src/lib/components/mobile/MobileAlgorithmSelector.svelte create mode 100644 src/lib/components/mobile/MobileHeaderButtons.svelte diff --git a/src/app.css b/src/app.css index 4808756..10f9e78 100644 --- a/src/app.css +++ b/src/app.css @@ -5,8 +5,14 @@ body { max-width: 100%; overflow-x: hidden; + min-height: 100vh; + min-height: -webkit-fill-available; } .range:disabled { opacity: 0.5; } + +html { + height: -webkit-fill-available; +} diff --git a/src/lib/components/ControlButtons.svelte b/src/lib/components/ControlButtons.svelte index b969a33..7e7b9a7 100644 --- a/src/lib/components/ControlButtons.svelte +++ b/src/lib/components/ControlButtons.svelte @@ -44,17 +44,18 @@ }; -
+
- +
- +
diff --git a/src/lib/components/Footer.svelte b/src/lib/components/Footer.svelte index 392c3ee..d1a9768 100644 --- a/src/lib/components/Footer.svelte +++ b/src/lib/components/Footer.svelte @@ -1,6 +1,6 @@