From 0168360eeec14a867d0a76eb36c0bf2b457fa750 Mon Sep 17 00:00:00 2001 From: Brieuc Dubois Date: Wed, 17 Jan 2024 20:13:33 +0100 Subject: [PATCH] Improve mobile view --- frontend/src/lib/components/card/Card.svelte | 2 +- frontend/src/lib/components/project/Column.svelte | 4 +++- frontend/src/lib/components/project/Project.svelte | 2 +- frontend/src/lib/components/project/Sidebar.svelte | 6 +++++- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/frontend/src/lib/components/card/Card.svelte b/frontend/src/lib/components/card/Card.svelte index 0fc47fe..dd4070a 100644 --- a/frontend/src/lib/components/card/Card.svelte +++ b/frontend/src/lib/components/card/Card.svelte @@ -35,7 +35,7 @@ {#if showModal} -{:else}{/if} +{/if} diff --git a/frontend/src/lib/components/project/Sidebar.svelte b/frontend/src/lib/components/project/Sidebar.svelte index eca2469..9cf987d 100644 --- a/frontend/src/lib/components/project/Sidebar.svelte +++ b/frontend/src/lib/components/project/Sidebar.svelte @@ -56,12 +56,16 @@ {#each $views as view}
  • currentView.set(view)} + on:click={() => { + currentView.set(view); + isVisible = false; + }} role="button" tabindex="0" on:keydown={(e) => { if (e.key === 'Enter') { currentView.set(view); + isVisible = false; } }} class:active={$currentView === view}