From bd98cb90aa9d085222fd458b3b577e4df7ac3c97 Mon Sep 17 00:00:00 2001 From: EETagent Date: Fri, 23 Dec 2022 21:49:38 +0100 Subject: [PATCH] fix: icon refactoring --- .../components/dashboard/InfoButton.svelte | 42 ++++++------------- .../src/lib/components/icons/Document.svelte | 16 +++++++ .../src/lib/components/icons/Download.svelte | 16 +++++++ 3 files changed, 45 insertions(+), 29 deletions(-) create mode 100644 frontend/src/lib/components/icons/Document.svelte create mode 100644 frontend/src/lib/components/icons/Download.svelte diff --git a/frontend/src/lib/components/dashboard/InfoButton.svelte b/frontend/src/lib/components/dashboard/InfoButton.svelte index 6a2431e..400a87c 100644 --- a/frontend/src/lib/components/dashboard/InfoButton.svelte +++ b/frontend/src/lib/components/dashboard/InfoButton.svelte @@ -3,6 +3,8 @@ import 'tippy.js/dist/tippy.css'; import { createEventDispatcher } from 'svelte'; import { submissionProgress, UploadStatus } from '$lib/stores/portfolio'; + import Document from '../icons/Document.svelte'; + import Download from '../icons/Download.svelte'; export let showDetails: boolean; @@ -17,7 +19,6 @@ }; - showInfo()} on:keydown={(_) => showInfo()} @@ -27,20 +28,10 @@ showOnCreate: false, delay: 0 }} + class="icon" + class:showDetails > - + {#if $submissionProgress.status === UploadStatus.Submitted} @@ -76,28 +67,21 @@ showOnCreate: false, delay: 0 }} + class="icon disabledIcon" > - + {/if} diff --git a/frontend/src/lib/components/icons/Document.svelte b/frontend/src/lib/components/icons/Document.svelte new file mode 100644 index 0000000..e3d9082 --- /dev/null +++ b/frontend/src/lib/components/icons/Document.svelte @@ -0,0 +1,16 @@ + + + diff --git a/frontend/src/lib/components/icons/Download.svelte b/frontend/src/lib/components/icons/Download.svelte new file mode 100644 index 0000000..1ad629b --- /dev/null +++ b/frontend/src/lib/components/icons/Download.svelte @@ -0,0 +1,16 @@ + + +