feat: revamp settings page

This commit is contained in:
Xyphyn committed 2023-10-13 14:08:07 -07:00
1 parent d788b17f72
commit 4af32dc3f0
6 files changed
+100 -129

No files matched your search

+10 -4
View File
@@ -2,13 +2,19 @@
import { userSettings } from '$lib/settings.js'
import { Select } from 'mono-svelte'
import { Icon, ViewColumns } from 'svelte-hero-icons'
export let showLabel = true
</script>
<Select bind:value={$userSettings.view}>
<span slot="label" class="flex items-center gap-1">
<Icon src={ViewColumns} size="14" mini />
View
</span>
<svelte:fragment slot="label">
{#if showLabel}
<span class="flex items-center gap-1">
<Icon src={ViewColumns} size="14" mini />
View
</span>
{/if}
</svelte:fragment>
<option value="card">Cards</option>
<option value="cozy">Cozy</option>
<option value="list">List</option>