From b1f8062b85ee739e9efb32cbdfde205faaf297d8 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Thu, 3 Nov 2022 20:19:57 +0100 Subject: [PATCH] basic responsive navbar --- .../lib/components/navbar/UserControls.svelte | 9 +++ web/pw-server/src/routes/__layout.svelte | 79 +++++++++++++++++-- .../src/routes/bots/[bot_name]/stats.svelte | 22 ------ 3 files changed, 82 insertions(+), 28 deletions(-) diff --git a/web/pw-server/src/lib/components/navbar/UserControls.svelte b/web/pw-server/src/lib/components/navbar/UserControls.svelte index fa920ad..184a40a 100644 --- a/web/pw-server/src/lib/components/navbar/UserControls.svelte +++ b/web/pw-server/src/lib/components/navbar/UserControls.svelte @@ -52,6 +52,7 @@ font-size: 18px; font-family: Helvetica, sans-serif; padding: 4px 8px; + font-weight: 400; } .account-href { @@ -76,4 +77,12 @@ display: flex; align-items: center; } + + // TODO: pretty hacky + @media screen and (max-width: 600px) { + .user-controls { + flex-direction: column; + align-items: flex-start; + } + } diff --git a/web/pw-server/src/routes/__layout.svelte b/web/pw-server/src/routes/__layout.svelte index 4baefce..6d00a5f 100644 --- a/web/pw-server/src/routes/__layout.svelte +++ b/web/pw-server/src/routes/__layout.svelte @@ -1,11 +1,22 @@
-