forked from MapComplete/MapComplete
UX: styling tweaks, fix typing errors
This commit is contained in:
parent
4be49a0561
commit
40067e35d4
5 changed files with 11 additions and 14 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue