Update dev branch #29
1 changed files with 45 additions and 41 deletions
|
@ -102,8 +102,9 @@
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<div class="flex flex-col md:flex-row gap-2">
|
<div class="flex flex-col gap-2 md:flex-row">
|
||||||
<Input bind:value={name} placeholder="Rechercher un puzzle" />
|
<Input bind:value={name} placeholder="Rechercher un puzzle" />
|
||||||
|
{#if Object.keys(themes).length}
|
||||||
<Select.Root
|
<Select.Root
|
||||||
multiple
|
multiple
|
||||||
selected={themeList.map((theme) => ({ label: theme, value: theme }))}
|
selected={themeList.map((theme) => ({ label: theme, value: theme }))}
|
||||||
|
@ -124,6 +125,8 @@
|
||||||
{/each}
|
{/each}
|
||||||
</Select.Content>
|
</Select.Content>
|
||||||
</Select.Root>
|
</Select.Root>
|
||||||
|
{/if}
|
||||||
|
{#if Object.keys(difficulties).length}
|
||||||
<Select.Root
|
<Select.Root
|
||||||
multiple
|
multiple
|
||||||
selected={difficultyList.map((difficulty) => ({ label: difficulty, value: difficulty }))}
|
selected={difficultyList.map((difficulty) => ({ label: difficulty, value: difficulty }))}
|
||||||
|
@ -144,6 +147,7 @@
|
||||||
{/each}
|
{/each}
|
||||||
</Select.Content>
|
</Select.Content>
|
||||||
</Select.Root>
|
</Select.Root>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<ul class="flex flex-col gap-2">
|
<ul class="flex flex-col gap-2">
|
||||||
{#if !filteredPuzzles.length}
|
{#if !filteredPuzzles.length}
|
||||||
|
|
Loading…
Add table
Reference in a new issue