fix: fix edit post dialog
This commit is contained in:
1 parent
87fcf27a82
commit
4b1d6c274f
2 files changed
+10
-3
No files matched your search
@@ -71,7 +71,8 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if editing}
|
{#if editing}
|
||||||
<Modal bind:open={editing} class="max-w-[90vw] w-[34rem]">
|
<Modal bind:open={editing}>
|
||||||
|
<h1 slot="title" class="text-2xl font-bold">Editing post</h1>
|
||||||
<PostForm
|
<PostForm
|
||||||
edit
|
edit
|
||||||
editingPost={post.post}
|
editingPost={post.post}
|
||||||
@@ -79,7 +80,9 @@
|
|||||||
editing = false
|
editing = false
|
||||||
dispatcher('edit', e.detail)
|
dispatcher('edit', e.detail)
|
||||||
}}
|
}}
|
||||||
/>
|
>
|
||||||
|
<span slot="formtitle" />
|
||||||
|
</PostForm>
|
||||||
</Modal>
|
</Modal>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
|||||||
@@ -133,7 +133,11 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<form on:submit|preventDefault={submit} class="flex flex-col gap-4">
|
<form on:submit|preventDefault={submit} class="flex flex-col gap-4">
|
||||||
<h1 class="font-bold text-xl">{edit ? 'Edit' : 'Create'} Post</h1>
|
<slot name="formtitle">
|
||||||
|
<h1 class="font-bold text-xl">
|
||||||
|
{edit ? 'Edit' : 'Create'} Post
|
||||||
|
</h1>
|
||||||
|
</slot>
|
||||||
{#if !edit}
|
{#if !edit}
|
||||||
<div>
|
<div>
|
||||||
<div class="flex flex-row">
|
<div class="flex flex-row">
|
||||||
|
|||||||
Reference in new issue
Block a user