update: mono-svelte

This commit is contained in:
Xylight committed 2024-03-24 15:33:14 -07:00
1 parent 9cc697c94f
commit 4b39d59c02
6 files changed
+52 -31

No files matched your search

+5 -1
View File
@@ -67,7 +67,11 @@
<PrivateMessageModal bind:open={replying} user={item.item.creator} />
{/if}
<Material class="flex flex-col max-w-full gap-4">
<Material
class="flex flex-col max-w-full gap-4"
color="transparent"
rounding="xl"
>
<div class="meta w-full">
<div
class="rounded-full p-1 h-10 w-10 border border-slate-200 dark:border-zinc-800 grid place-items-center"
+27 -17
View File
@@ -239,7 +239,7 @@
</Section>
<Section title="Moderation">
<Setting>
<Setting mainClass="md:flex-row flex-col !items-start">
<span slot="title">Removal reply presets</span>
<span slot="description">
<p>Presets to use for "Reply reason" in a submission removal.</p>
@@ -264,7 +264,12 @@
</ul>
</span>
{#each $userSettings.moderation.presets as preset, index}
<Material color="distinct" padding="md" class="py-3 w-full">
<Material
color="transparent"
rounding="xl"
padding="sm"
class="py-3 w-full rounded-full"
>
<details>
<summary
class="cursor-pointer inline-flex flex-row items-center w-full gap-1"
@@ -273,6 +278,7 @@
{preset.title}
<Button
size="square-md"
rounding="lg"
class="ml-auto"
on:click={() => {
$userSettings.moderation.presets.splice(index, 1)
@@ -306,21 +312,25 @@
</details>
</Material>
{/each}
<Button
on:click={() => {
$userSettings.moderation.presets = [
...$userSettings.moderation.presets,
{
title: `Preset ${$userSettings.moderation.presets.length + 1}`,
content:
'Your submission in *{{post}}* was removed for *{{reason}}*.',
},
]
}}
>
<Icon src={Plus} mini size="16" slot="prefix" />
Add Preset
</Button>
<Material color="transparent" rounding="xl" padding="none" class="w-full">
<Button
color="none"
class="w-full"
on:click={() => {
$userSettings.moderation.presets = [
...$userSettings.moderation.presets,
{
title: `Preset ${$userSettings.moderation.presets.length + 1}`,
content:
'Your submission in *{{post}}* was removed for *{{reason}}*.',
},
]
}}
>
<Icon src={Plus} mini size="16" slot="prefix" />
Add Preset
</Button>
</Material>
</Setting>
</Section>
+3 -1
View File
@@ -1,4 +1,6 @@
<div class="flex flex-row items-center w-full justify-between gap-4 max-w-full">
<div
class="flex flex-row items-center w-full justify-between gap-4 max-w-full {$$props.mainClass}"
>
<div class="flex flex-col gap-0.5 flex-1 {$$props.class}">
<h1 class="font-medium text-base"><slot name="title" /></h1>
{#if $$slots.description}