misc: update MultiSelect style

This commit is contained in:
Daniel Wolbach committed 2023-07-22 11:01:36 +02:00
1 parent 1fe3ee5b5b
commit 259203b4f3
2 files changed
+6 -7

No files matched your search

+5 -6
View File
@@ -15,18 +15,17 @@
</script>
<div
class="flex overflow-hidden flex-row items-center w-max rounded-md {separate
? 'gap-2'
: ''}"
class="flex overflow-hidden flex-row items-center w-max bg-slate-100
rounded-md dark:bg-zinc-900 gap-1 p-1 border border-slate-200"
>
{#each options as option, index}
<button
class="px-3 py-2 text-sm
transition-colors {separate ? 'rounded-full' : ''}
class="px-3 py-2 text-sm rounded-md
transition-colors
{selected == option
? 'bg-black text-white dark:bg-white dark:text-black\
hover:bg-zinc-900 hover:dark:bg-zinc-300'
: 'bg-slate-100 dark:bg-zinc-900 hover:bg-slate-200 hover:dark:bg-zinc-800'}
: ' hover:bg-slate-200 hover:dark:bg-zinc-800'}
{clazz}
disabled:opacity-60 disabled:pointer-events-none"
on:click={() => (selected = option)}
+1 -1
View File
@@ -21,7 +21,7 @@
<div class="flex flex-col gap-4 max-w-full w-full min-w-0">
<header><h1 class="text-3xl font-bold">Frontpage</h1></header>
<div
class="flex flex-col sm:flex-row gap-4 max-w-full w-full"
class="flex flex-col sm:flex-row gap-4 max-w-full w-full justify-between"
role="radiogroup"
>
<MultiSelect