feat: close #106
This commit is contained in:
1 parent
d5de6bb7c6
commit
b2d0cb269c
3 files changed
+10
-44
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "photon-lemmy",
|
"name": "photon-lemmy",
|
||||||
"version": "0.8.4",
|
"version": "0.9.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite dev",
|
"dev": "vite dev",
|
||||||
|
|||||||
@@ -59,46 +59,12 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="flex flex-col gap-2 relative">
|
<div class="flex flex-col gap-2 relative">
|
||||||
{#if preview}
|
<MarkdownEditor
|
||||||
<div
|
rows={7}
|
||||||
class="bg-slate-100 dark:bg-zinc-900 px-3 py-2.5 h-64 border
|
placeholder={locked ? 'This post is locked.' : placeholders.get('comment')}
|
||||||
border-slate-300 dark:border-zinc-700 rounded-md overflow-auto text-sm"
|
bind:value
|
||||||
>
|
disabled={locked || loading}
|
||||||
<Markdown source={value} />
|
on:confirm={submit}
|
||||||
</div>
|
previewButton
|
||||||
{:else}
|
/>
|
||||||
<MarkdownEditor
|
|
||||||
rows={7}
|
|
||||||
placeholder={locked
|
|
||||||
? 'This post is locked.'
|
|
||||||
: placeholders.get('comment')}
|
|
||||||
bind:value
|
|
||||||
disabled={locked || loading}
|
|
||||||
on:confirm={submit}
|
|
||||||
/>
|
|
||||||
{/if}
|
|
||||||
{#if actions || previewAction}
|
|
||||||
<div class="flex flex-row items-center justify-between">
|
|
||||||
{#if previewAction}
|
|
||||||
<MultiSelect
|
|
||||||
options={[false, true]}
|
|
||||||
optionNames={['Edit', 'Preview']}
|
|
||||||
bind:selected={preview}
|
|
||||||
/>
|
|
||||||
{/if}
|
|
||||||
{#if actions}
|
|
||||||
<Button
|
|
||||||
large
|
|
||||||
on:click={submit}
|
|
||||||
color="primary"
|
|
||||||
size="lg"
|
|
||||||
class="sm:ml-auto w-28"
|
|
||||||
{loading}
|
|
||||||
disabled={locked || loading}
|
|
||||||
>
|
|
||||||
Submit
|
|
||||||
</Button>
|
|
||||||
{/if}
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
</div>
|
</div>
|
||||||
@@ -120,7 +120,7 @@
|
|||||||
overflow-hidden focus-within:border-black focus-within:dark:border-white transition-colors"
|
overflow-hidden focus-within:border-black focus-within:dark:border-white transition-colors"
|
||||||
>
|
>
|
||||||
{#if previewing}
|
{#if previewing}
|
||||||
<div class="px-3 py-2.5 h-32 overflow-auto text-sm">
|
<div class="px-3 py-2.5 h-32 overflow-auto text-sm resize-y">
|
||||||
<Markdown source={beforePreview(value)} />
|
<Markdown source={beforePreview(value)} />
|
||||||
</div>
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
|
|||||||
Reference in new issue
Block a user