diff --git a/bun.lockb b/bun.lockb index 06efdfc0..fbd55445 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index e7c81258..9f74f959 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "@dicebear/core": "^6.0.4", "@dicebear/initials": "^6.0.4", "markdown-it": "^13.0.1", - "mono-svelte": "1.5.5" + "mono-svelte": "1.5.6" }, "overrides": { "@rollup/plugin-node-resolve": "^15.2.3", diff --git a/src/lib/components/input/Switch.svelte b/src/lib/components/input/Switch.svelte index 473baa54..e9412747 100644 --- a/src/lib/components/input/Switch.svelte +++ b/src/lib/components/input/Switch.svelte @@ -18,26 +18,31 @@ let containerClass = ` flex flex-row items-center w-max max-w-full overflow-auto - ${ - headless - ? 'pb-1 gap-1' - : 'gap-1.5' - } + ${headless ? 'pb-1 gap-1' : ''} ${$$props.class} ` const buttonClass = (selected: boolean) => ` - px-3.5 py-1.5 text-sm - ${!selected ? 'hover:bg-slate-100 hover:dark:bg-zinc-800' : ''} - transition-colors rounded-full + first:rounded-l-lg first:border-l first:dark:border-l-transparent + last:rounded-r-lg last:border-r last:dark:border-r-transparent + rounded-l-none + rounded-r-none + px-3 py-1.5 text-sm hover:brightness-110 + ${ + !selected + ? `hover:dark:bg-zinc-800 border-slate-100 border-t border-b border-b-slate-300 dark:border-b-0 + dark:border-t dark:border-t-zinc-700` + : '' + } + transition-all transition-filters rounded-full ${ selected ? headless ? '' - : 'bg-primary-900 text-slate-50 dark:bg-primary-100 dark:text-black hover:bg-slate-800 hover:dark:bg-zinc-300' + : `bg-primary-900 dark:bg-primary-100 text-slate-50 dark:text-zinc-900` : headless - ? '' - : 'bg-slate-100 dark:bg-zinc-800' + ? '' + : 'bg-white dark:bg-zinc-800' } disabled:opacity-60 disabled:pointer-events-none whitespace-nowrap relative diff --git a/src/routes/inbox/InboxItem.svelte b/src/routes/inbox/InboxItem.svelte index ec914227..b2d0f6a4 100644 --- a/src/routes/inbox/InboxItem.svelte +++ b/src/routes/inbox/InboxItem.svelte @@ -67,7 +67,11 @@ {/if} - + - + Removal reply presets Presets to use for "Reply reason" in a submission removal. @@ -264,7 +264,12 @@ {#each $userSettings.moderation.presets as preset, index} - + { $userSettings.moderation.presets.splice(index, 1) @@ -306,21 +312,25 @@ {/each} - { - $userSettings.moderation.presets = [ - ...$userSettings.moderation.presets, - { - title: `Preset ${$userSettings.moderation.presets.length + 1}`, - content: - 'Your submission in *{{post}}* was removed for *{{reason}}*.', - }, - ] - }} - > - - Add Preset - + + { + $userSettings.moderation.presets = [ + ...$userSettings.moderation.presets, + { + title: `Preset ${$userSettings.moderation.presets.length + 1}`, + content: + 'Your submission in *{{post}}* was removed for *{{reason}}*.', + }, + ] + }} + > + + Add Preset + + diff --git a/src/routes/settings/Setting.svelte b/src/routes/settings/Setting.svelte index 0ef968fa..c2943d4d 100644 --- a/src/routes/settings/Setting.svelte +++ b/src/routes/settings/Setting.svelte @@ -1,4 +1,6 @@ - + {#if $$slots.description}
Presets to use for "Reply reason" in a submission removal.