fix: fix edit post dialog

This commit is contained in:
Xyphyn committed 2023-07-27 11:23:46 -07:00
1 parent 87fcf27a82
commit 4b1d6c274f
2 files changed
+10 -3

No files matched your search

@@ -71,7 +71,8 @@
</script>
{#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
edit
editingPost={post.post}
@@ -79,7 +80,9 @@
editing = false
dispatcher('edit', e.detail)
}}
/>
>
<span slot="formtitle" />
</PostForm>
</Modal>
{/if}
@@ -133,7 +133,11 @@
</script>
<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}
<div>
<div class="flex flex-row">