UX: styling tweaks, fix typing errors

This commit is contained in:
Pieter Vander Vennet 2023-12-13 01:01:56 +01:00
parent 4be49a0561
commit 40067e35d4
5 changed files with 11 additions and 14 deletions

View file

@ -1,15 +1,15 @@
<script lang="ts">
import type { Writable } from "svelte/store"
import { UIEventSource } from "../../Logic/UIEventSource"
/**
* For some stupid reason, it is very hard to bind inputs
*/
export let selected: Writable<boolean>
export let selected: UIEventSource<boolean>
let _c: boolean = selected.data ?? true
$: selected.set(_c)
</script>
<label class="no-image-background flex gap-1">
<label class="no-image-background flex items-center gap-1">
<input bind:checked={_c} type="checkbox" />
<slot />
</label>