From 233afb75eb16d4bbcdc82506987187eea0c54d96 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Thu, 8 Sep 2022 23:30:38 -0400 Subject: [PATCH] More work on the mobile interface. Begin toying with a hamburger menu. Remove many redundant CSS definitions. --- src/app.css | 6 +++ src/lib/header/Header.svelte | 62 +------------------------ src/lib/header/NavBar.svelte | 87 ++++++++++++++++++++++-------------- src/lib/state.js | 2 +- src/routes/+page.svelte | 12 +++++ 5 files changed, 73 insertions(+), 96 deletions(-) diff --git a/src/app.css b/src/app.css index 72ef145..fc8399f 100644 --- a/src/app.css +++ b/src/app.css @@ -294,9 +294,15 @@ section { .query-settings { overflow: scroll; } + .mobile { + display: none !important; + } } @media (max-width: 719px) { + .desktop { + display: none !important; + } section { flex-direction: column; overflow: scroll; diff --git a/src/lib/header/Header.svelte b/src/lib/header/Header.svelte index 92e5433..ebe931a 100644 --- a/src/lib/header/Header.svelte +++ b/src/lib/header/Header.svelte @@ -13,7 +13,7 @@ -
+
+
  • + Settings +
  • + + {/if} + + \ No newline at end of file diff --git a/src/lib/state.js b/src/lib/state.js index 8c6fc94..a96ced5 100644 --- a/src/lib/state.js +++ b/src/lib/state.js @@ -1,6 +1,6 @@ // noinspection JSCheckFunctionSignatures -import { get, writable } from 'svelte/store' +import { writable } from 'svelte/store' import { backendAddressAndPort, queryMode, queryState } from './constants.js' const getRandomFromArray = array => array[Math.floor(Math.random() * array.length)] diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 09b637e..dc270c2 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -177,6 +177,7 @@ {/if}
    +
    {/if}
    @@ -226,6 +227,17 @@