misc: increase comment form height
This commit is contained in:
1 parent
47b29e2208
commit
130bd442a5
2 files changed
+3
-3
No files matched your search
@@ -61,14 +61,14 @@
|
|||||||
<div class="flex flex-col gap-2 relative">
|
<div class="flex flex-col gap-2 relative">
|
||||||
{#if preview}
|
{#if preview}
|
||||||
<div
|
<div
|
||||||
class="bg-slate-100 dark:bg-zinc-900 px-3 py-2.5 h-[102px] border
|
class="bg-slate-100 dark:bg-zinc-900 px-3 py-2.5 h-64 border
|
||||||
border-slate-300 dark:border-zinc-700 rounded-md overflow-auto text-sm"
|
border-slate-300 dark:border-zinc-700 rounded-md overflow-auto text-sm"
|
||||||
>
|
>
|
||||||
<Markdown source={value} />
|
<Markdown source={value} />
|
||||||
</div>
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
<MarkdownEditor
|
<MarkdownEditor
|
||||||
rows={4}
|
rows={7}
|
||||||
placeholder={locked
|
placeholder={locked
|
||||||
? 'This post is locked.'
|
? 'This post is locked.'
|
||||||
: placeholders.get('comment')}
|
: placeholders.get('comment')}
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@ async function customFetch(
|
|||||||
init?: RequestInit | undefined
|
init?: RequestInit | undefined
|
||||||
): Promise<Response> {
|
): Promise<Response> {
|
||||||
const res = await func(input, init)
|
const res = await func(input, init)
|
||||||
if (!res.ok) throw error(res.status, res.statusText)
|
if (!res.ok) throw error(res.status, await res.text())
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user