misc: update MultiSelect style
This commit is contained in:
1 parent
1fe3ee5b5b
commit
259203b4f3
2 files changed
+6
-7
No files matched your search
@@ -15,18 +15,17 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="flex overflow-hidden flex-row items-center w-max rounded-md {separate
|
class="flex overflow-hidden flex-row items-center w-max bg-slate-100
|
||||||
? 'gap-2'
|
rounded-md dark:bg-zinc-900 gap-1 p-1 border border-slate-200"
|
||||||
: ''}"
|
|
||||||
>
|
>
|
||||||
{#each options as option, index}
|
{#each options as option, index}
|
||||||
<button
|
<button
|
||||||
class="px-3 py-2 text-sm
|
class="px-3 py-2 text-sm rounded-md
|
||||||
transition-colors {separate ? 'rounded-full' : ''}
|
transition-colors
|
||||||
{selected == option
|
{selected == option
|
||||||
? 'bg-black text-white dark:bg-white dark:text-black\
|
? 'bg-black text-white dark:bg-white dark:text-black\
|
||||||
hover:bg-zinc-900 hover:dark:bg-zinc-300'
|
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}
|
{clazz}
|
||||||
disabled:opacity-60 disabled:pointer-events-none"
|
disabled:opacity-60 disabled:pointer-events-none"
|
||||||
on:click={() => (selected = option)}
|
on:click={() => (selected = option)}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
<div class="flex flex-col gap-4 max-w-full w-full min-w-0">
|
<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>
|
<header><h1 class="text-3xl font-bold">Frontpage</h1></header>
|
||||||
<div
|
<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"
|
role="radiogroup"
|
||||||
>
|
>
|
||||||
<MultiSelect
|
<MultiSelect
|
||||||
|
|||||||
Reference in new issue
Block a user