From 23aaf2223f3a9735455d4a864db4f56f4c701091 Mon Sep 17 00:00:00 2001 From: secondl1ght <85003930+secondl1ght@users.noreply.github.com> Date: Tue, 2 Aug 2022 15:04:13 -0600 Subject: add outclick to menu --- src/components/AppHeader.svelte | 45 +++++++++++++++++++++++------------------ svelte.config.js | 1 - 2 files changed, 25 insertions(+), 21 deletions(-) diff --git a/src/components/AppHeader.svelte b/src/components/AppHeader.svelte index 44480ac8..cc147b0d 100644 --- a/src/components/AppHeader.svelte +++ b/src/components/AppHeader.svelte @@ -47,26 +47,31 @@
- -
- -
+ (showMenu = false)}> + + +
+
    + {#each menuButtons as button} +
  • + +
  • + {/each} +
+
+
{:else} diff --git a/svelte.config.js b/svelte.config.js index 2287f3a8..e57f80a6 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,5 +1,4 @@ import adapter from '@sveltejs/adapter-auto'; -// import adapter from '@sveltejs/adapter-node'; import preprocess from 'svelte-preprocess'; /** @type {import('@sveltejs/kit').Config} */ -- cgit v1.2.3