diff --git a/src/App.svelte b/src/App.svelte index 04040ac..9a67de4 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -8,6 +8,7 @@ import CompletedOverlay from './lib/CompletedOverlay.svelte'; import UploadOverlay from './lib/UploadOverlay.svelte'; import Heading from './lib/Heading.svelte'; + import ColorPicker from './lib/ColorPicker.svelte'; const params = new URLSearchParams(location.search) const hasTouch = Misc.hasTouch() @@ -361,16 +362,7 @@ {#if mode === 'color'}
- {#each colors as color, idx} -
- - { colors[idx] = e.target.value; updateColors() }}/> -
- {/each} + {#each colors as color, idx}{/each}
{/if}
diff --git a/src/lib/ColorPicker.svelte b/src/lib/ColorPicker.svelte new file mode 100644 index 0000000..d8402ea --- /dev/null +++ b/src/lib/ColorPicker.svelte @@ -0,0 +1,18 @@ + + +
+ + { colors[idx] = e.target.value; updateColors() }}/> +
\ No newline at end of file