fix: make settings page usable

This commit is contained in:
Xylight committed 2024-10-24 16:16:13 -07:00
1 parent 0718c8e0c6
commit d670f39f0a
11 files changed
+47 -60

No files matched your search

+4 -11
View File
@@ -226,15 +226,8 @@
name: locale,
}}
<option value={locale}>
<span>{mapped?.flag}</span>
<span>{mapped?.name}</span>
<div
class="text-slate-600 dark:text-zinc-400 text-xs ml-auto"
data-hide-selected
data-label={mapped.translated < 0
? ''
: `${mapped.translated * 100}%`}
></div>
{mapped?.flag}
{mapped?.name}
</option>
{/each}
</Select>
@@ -635,7 +628,7 @@
<summary
class="cursor-pointer inline-flex flex-row items-center w-full gap-1"
>
<Icon src={ChevronDown} mini size="16" slot="prefix" />
<Icon src={ChevronDown} mini size="16" />
{preset.title}
<Button
size="square-md"
@@ -647,7 +640,7 @@
$userSettings.moderation.presets
}}
>
<Icon src={Trash} size="16" mini slot="prefix" />
<Icon src={Trash} size="16" mini />
</Button>
</summary>
<div class="flex flex-col gap-3 mt-2">
+1 -3
View File
@@ -8,8 +8,6 @@
Icon,
} from 'svelte-hero-icons'
export let vertical: boolean = false
export let supportedPlatforms = {
desktop: true,
tablet: true,
@@ -18,7 +16,7 @@
export let mainClass: string = ''
export let itemsClass: string = ''
export let optionsClass: string = ''
export let optionClass: string = ''
let clazz: string = ''
export { clazz as class }
</script>