From c1d8b7d5314d701fde24cc08f13c0af67b0f7a2a Mon Sep 17 00:00:00 2001 From: pheralb Date: Fri, 7 Jul 2023 10:08:56 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Design=20improvements.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/svgCard.svelte | 2 +- src/routes/+layout.svelte | 11 +++++++---- src/types/categories.ts | 1 + 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/svgCard.svelte b/src/components/svgCard.svelte index 16c18b7..a579279 100644 --- a/src/components/svgCard.svelte +++ b/src/components/svgCard.svelte @@ -30,7 +30,7 @@ const content = (await getSvgContent(url, false)) as string; await navigator.clipboard.writeText(content); } - toast.message('Copied to clipboard!', { + toast.success('Copied to clipboard!', { description: `${svgInfo.title} - ${svgInfo.category}` }); }; diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index d276616..050937e 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -38,7 +38,7 @@ class="flex items-center space-x-2 duration-150 hover:text-neutral-500 dark:hover:text-neutral-300" >

svgl

-

v3.0.0

+

v3.1.0

@@ -54,7 +54,8 @@ ${data.pathname === `/` ? 'bg-neutral-200 dark:bg-neutral-700/30' : ''}`} data-sveltekit-preload-data>All - {#each categories as category} + + {#each categories.sort() as category} Repository {#if data.stars} -
-
+
+
+ +
{data.stars}
{/if} diff --git a/src/types/categories.ts b/src/types/categories.ts index 2c146c8..e273cd7 100644 --- a/src/types/categories.ts +++ b/src/types/categories.ts @@ -1,5 +1,6 @@ export type tCategory = | 'All' + | 'AI' | 'Software' | 'Library' | 'Hosting'