From 6c49f5c6d2266c3de5c2b301994f518a2d998c6e Mon Sep 17 00:00:00 2001 From: Nikita Galaiko Date: Tue, 25 Apr 2023 16:15:42 +0200 Subject: [PATCH] use buttons for the nav header --- src/lib/components/BackForwardButtons.svelte | 56 +++---------------- src/lib/components/Breadcrumbs.svelte | 34 +++++------ src/lib/components/Button/Button.svelte | 8 +-- src/lib/components/icons/IconArrowLeft.svelte | 20 +++++++ .../components/icons/IconArrowRight.svelte | 20 +++++++ src/lib/components/icons/index.ts | 2 + 6 files changed, 63 insertions(+), 77 deletions(-) create mode 100644 src/lib/components/icons/IconArrowLeft.svelte create mode 100644 src/lib/components/icons/IconArrowRight.svelte diff --git a/src/lib/components/BackForwardButtons.svelte b/src/lib/components/BackForwardButtons.svelte index da1091a68..437530b62 100644 --- a/src/lib/components/BackForwardButtons.svelte +++ b/src/lib/components/BackForwardButtons.svelte @@ -1,6 +1,8 @@
- - + />
diff --git a/src/lib/components/Breadcrumbs.svelte b/src/lib/components/Breadcrumbs.svelte index 31f86c825..b9c6d6c71 100644 --- a/src/lib/components/Breadcrumbs.svelte +++ b/src/lib/components/Breadcrumbs.svelte @@ -2,32 +2,24 @@ import type { Project } from '$lib/api'; import type { Readable } from 'svelte/store'; import { IconHome } from './icons'; - import { Tooltip } from '$lib/components'; + import { Tooltip, Button } from '$lib/components'; + import { goto } from '$app/navigation'; export let project: Readable; -
- - - +
+ + {/if}
diff --git a/src/lib/components/Button/Button.svelte b/src/lib/components/Button/Button.svelte index 0e2b5cae0..b7c3a9997 100644 --- a/src/lib/components/Button/Button.svelte +++ b/src/lib/components/Button/Button.svelte @@ -54,7 +54,7 @@