From 7cf4118d5117edc7ef89c192bb55035306c7ff06 Mon Sep 17 00:00:00 2001 From: Jonny Gerig Meyer Date: Tue, 31 Oct 2023 10:38:17 -0400 Subject: [PATCH] review --- src/lib/components/colors/FormatGroup.svelte | 10 ++++++---- src/lib/components/colors/Formats.svelte | 3 +-- src/lib/components/colors/Output.svelte | 11 ++++------- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/lib/components/colors/FormatGroup.svelte b/src/lib/components/colors/FormatGroup.svelte index f3dca99e..4c6ad656 100644 --- a/src/lib/components/colors/FormatGroup.svelte +++ b/src/lib/components/colors/FormatGroup.svelte @@ -22,12 +22,14 @@
{name}
{#if !isInGamut} Selected color is outside the {targetColor.space.name} gamut. + >Selected color is outside the {targetColor.space.name} gamut. {/if} {#each formats as format (format)} - + {/each} diff --git a/src/lib/components/colors/Formats.svelte b/src/lib/components/colors/Formats.svelte index e39ce764..8147f16e 100644 --- a/src/lib/components/colors/Formats.svelte +++ b/src/lib/components/colors/Formats.svelte @@ -3,7 +3,7 @@ import FormatGroup from '$lib/components/colors/FormatGroup.svelte'; import type { ColorFormatId } from '$lib/constants'; - import { FORMAT_GROUPS, FORMATS } from '$lib/constants'; + import { FORMAT_GROUPS } from '$lib/constants'; export let type: 'bg' | 'fg'; export let color: PlainColorObject; @@ -13,7 +13,6 @@ selectedFormat: ColorFormatId, ): typeof FORMAT_GROUPS { const otherFormats: typeof FORMAT_GROUPS = {}; - FORMATS.filter((s) => s !== format); Object.keys(FORMAT_GROUPS).forEach((key) => { const groupFormats = FORMAT_GROUPS[key]!.filter( (s) => s !== selectedFormat, diff --git a/src/lib/components/colors/Output.svelte b/src/lib/components/colors/Output.svelte index 77f83dc8..971271f8 100644 --- a/src/lib/components/colors/Output.svelte +++ b/src/lib/components/colors/Output.svelte @@ -1,19 +1,16 @@