update: mono-svelte
This commit is contained in:
1 parent
9cc697c94f
commit
4b39d59c02
6 files changed
+36
-15
No files matched your search
+1
-1
@@ -47,7 +47,7 @@
|
|||||||
"@dicebear/core": "^6.0.4",
|
"@dicebear/core": "^6.0.4",
|
||||||
"@dicebear/initials": "^6.0.4",
|
"@dicebear/initials": "^6.0.4",
|
||||||
"markdown-it": "^13.0.1",
|
"markdown-it": "^13.0.1",
|
||||||
"mono-svelte": "1.5.5"
|
"mono-svelte": "1.5.6"
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@rollup/plugin-node-resolve": "^15.2.3",
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
||||||
|
|||||||
@@ -18,26 +18,31 @@
|
|||||||
|
|
||||||
let containerClass = `
|
let containerClass = `
|
||||||
flex flex-row items-center w-max max-w-full overflow-auto
|
flex flex-row items-center w-max max-w-full overflow-auto
|
||||||
${
|
${headless ? 'pb-1 gap-1' : ''}
|
||||||
headless
|
|
||||||
? 'pb-1 gap-1'
|
|
||||||
: 'gap-1.5'
|
|
||||||
}
|
|
||||||
${$$props.class}
|
${$$props.class}
|
||||||
`
|
`
|
||||||
|
|
||||||
const buttonClass = (selected: boolean) => `
|
const buttonClass = (selected: boolean) => `
|
||||||
px-3.5 py-1.5 text-sm
|
first:rounded-l-lg first:border-l first:dark:border-l-transparent
|
||||||
${!selected ? 'hover:bg-slate-100 hover:dark:bg-zinc-800' : ''}
|
last:rounded-r-lg last:border-r last:dark:border-r-transparent
|
||||||
transition-colors rounded-full
|
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
|
selected
|
||||||
? headless
|
? 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
|
: headless
|
||||||
? ''
|
? ''
|
||||||
: 'bg-slate-100 dark:bg-zinc-800'
|
: 'bg-white dark:bg-zinc-800'
|
||||||
}
|
}
|
||||||
disabled:opacity-60 disabled:pointer-events-none whitespace-nowrap
|
disabled:opacity-60 disabled:pointer-events-none whitespace-nowrap
|
||||||
relative
|
relative
|
||||||
|
|||||||
@@ -67,7 +67,11 @@
|
|||||||
<PrivateMessageModal bind:open={replying} user={item.item.creator} />
|
<PrivateMessageModal bind:open={replying} user={item.item.creator} />
|
||||||
{/if}
|
{/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="meta w-full">
|
||||||
<div
|
<div
|
||||||
class="rounded-full p-1 h-10 w-10 border border-slate-200 dark:border-zinc-800 grid place-items-center"
|
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>
|
||||||
|
|
||||||
<Section title="Moderation">
|
<Section title="Moderation">
|
||||||
<Setting>
|
<Setting mainClass="md:flex-row flex-col !items-start">
|
||||||
<span slot="title">Removal reply presets</span>
|
<span slot="title">Removal reply presets</span>
|
||||||
<span slot="description">
|
<span slot="description">
|
||||||
<p>Presets to use for "Reply reason" in a submission removal.</p>
|
<p>Presets to use for "Reply reason" in a submission removal.</p>
|
||||||
@@ -264,7 +264,12 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</span>
|
</span>
|
||||||
{#each $userSettings.moderation.presets as preset, index}
|
{#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>
|
<details>
|
||||||
<summary
|
<summary
|
||||||
class="cursor-pointer inline-flex flex-row items-center w-full gap-1"
|
class="cursor-pointer inline-flex flex-row items-center w-full gap-1"
|
||||||
@@ -273,6 +278,7 @@
|
|||||||
{preset.title}
|
{preset.title}
|
||||||
<Button
|
<Button
|
||||||
size="square-md"
|
size="square-md"
|
||||||
|
rounding="lg"
|
||||||
class="ml-auto"
|
class="ml-auto"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
$userSettings.moderation.presets.splice(index, 1)
|
$userSettings.moderation.presets.splice(index, 1)
|
||||||
@@ -306,7 +312,10 @@
|
|||||||
</details>
|
</details>
|
||||||
</Material>
|
</Material>
|
||||||
{/each}
|
{/each}
|
||||||
|
<Material color="transparent" rounding="xl" padding="none" class="w-full">
|
||||||
<Button
|
<Button
|
||||||
|
color="none"
|
||||||
|
class="w-full"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
$userSettings.moderation.presets = [
|
$userSettings.moderation.presets = [
|
||||||
...$userSettings.moderation.presets,
|
...$userSettings.moderation.presets,
|
||||||
@@ -321,6 +330,7 @@
|
|||||||
<Icon src={Plus} mini size="16" slot="prefix" />
|
<Icon src={Plus} mini size="16" slot="prefix" />
|
||||||
Add Preset
|
Add Preset
|
||||||
</Button>
|
</Button>
|
||||||
|
</Material>
|
||||||
</Setting>
|
</Setting>
|
||||||
</Section>
|
</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}">
|
<div class="flex flex-col gap-0.5 flex-1 {$$props.class}">
|
||||||
<h1 class="font-medium text-base"><slot name="title" /></h1>
|
<h1 class="font-medium text-base"><slot name="title" /></h1>
|
||||||
{#if $$slots.description}
|
{#if $$slots.description}
|
||||||
|
|||||||
Reference in new issue
Block a user