update: mono-svelte
This commit is contained in:
1 parent
9cc697c94f
commit
4b39d59c02
6 files changed
+52
-31
No files matched your search
+1
-1
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user