From ef4130de74a8fd5da06a96fd7639ff66bf6e5c04 Mon Sep 17 00:00:00 2001 From: Gabriel Marques Gallo <80481877+Gallo-10@users.noreply.github.com> Date: Tue, 19 Nov 2024 14:25:41 -0300 Subject: [PATCH] color adjustment --- src/components/sidebar/Sidebar.svelte | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/components/sidebar/Sidebar.svelte b/src/components/sidebar/Sidebar.svelte index 4fc2f84..85b58b3 100644 --- a/src/components/sidebar/Sidebar.svelte +++ b/src/components/sidebar/Sidebar.svelte @@ -15,7 +15,9 @@ } }; - const types = Array.from(new Set(nodes.map((node: any) => node.extras.type))); + const types = Array.from( + new Set(nodes.map((node: any) => node.extras.type)), + ); console.log(types); @@ -23,9 +25,9 @@
{#each types as type} -
{type}
+
{type.toUpperCase()}
{#each nodes as node} {#if node.extras.type == type} @@ -49,12 +51,15 @@