misc: tweak design of post page
This commit is contained in:
1 parent
b8bac864c2
commit
3cb8384df9
3 files changed
+9
-5
No files matched your search
@@ -171,7 +171,7 @@
|
|||||||
{/await}
|
{/await}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<form on:submit|preventDefault={submit} class="flex flex-col gap-4">
|
<form on:submit|preventDefault={submit} class="flex flex-col gap-4 h-full">
|
||||||
<slot name="formtitle">
|
<slot name="formtitle">
|
||||||
<h1 class="font-bold text-xl">
|
<h1 class="font-bold text-xl">
|
||||||
{edit ? 'Edit' : 'Create'} Post
|
{edit ? 'Edit' : 'Create'} Post
|
||||||
@@ -256,6 +256,7 @@
|
|||||||
loading={data.loading}
|
loading={data.loading}
|
||||||
size="lg"
|
size="lg"
|
||||||
disabled={data.loading}
|
disabled={data.loading}
|
||||||
|
class={$$props.class}
|
||||||
>
|
>
|
||||||
Submit
|
Submit
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<aside
|
<aside
|
||||||
class="sticky top-16 break-words flex
|
class="sticky top-16 break-words flex
|
||||||
flex-col gap-4 p-6 max-w-full w-96 max-h-[calc(100svh-4rem)]
|
flex-col gap-4 p-6 max-w-full 2xl:w-96 w-80 max-h-[calc(100svh-4rem)]
|
||||||
overflow-auto text-sm border-slate-200 dark:border-zinc-800 {$$props.class}"
|
overflow-auto text-sm border-slate-200 dark:border-zinc-800 {$$props.class}"
|
||||||
>
|
>
|
||||||
<slot />
|
<slot />
|
||||||
|
|||||||
@@ -23,9 +23,12 @@
|
|||||||
<title>Create post</title>
|
<title>Create post</title>
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<Card class="p-6 max-w-2xl mx-auto">
|
<div class="w-full max-w-5xl mx-auto h-full">
|
||||||
<PostForm
|
<PostForm
|
||||||
passedCommunity={community}
|
passedCommunity={community}
|
||||||
on:submit={(e) => goto(`/post/${e.detail.post.id}`)}
|
on:submit={(e) => goto(`/post/${e.detail.post.id}`)}
|
||||||
/>
|
class="mt-auto"
|
||||||
</Card>
|
>
|
||||||
|
<h1 class="text-2xl font-bold" slot="formtitle">Create Post</h1>
|
||||||
|
</PostForm>
|
||||||
|
</div>
|
||||||
Reference in new issue
Block a user