Update comment component
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 1m53s

This commit is contained in:
Ryan Freeman 2025-06-20 20:38:21 +01:00
parent efd8dfb8f8
commit 34a1bb9756

View File

@ -185,8 +185,10 @@ Comments.Form = function Form({slug}: { slug: string }) {
/> />
<input type="hidden" name="parent_id" value={parentId ?? ''}/> <input type="hidden" name="parent_id" value={parentId ?? ''}/>
<input type="hidden" name="slug" value={slug}/> <input type="hidden" name="slug" value={slug}/>
<div className="mt-2 flex justify-between items-center gap-x-4"> <div className={clsx('mt-2 flex justify-end items-center gap-x-4', session && 'justify-between')}>
<p className="text-sm text-zinc-600 dark:text-zinc-400">{`${commentFormContext?.commentLength} / ${commentFormContext?.commentMaxLength}`}</p> {session &&
<p className="text-sm text-zinc-600 dark:text-zinc-400">{`${commentFormContext?.commentLength} / ${commentFormContext?.commentMaxLength}`}</p>
}
<div className="flex gap-x-4"> <div className="flex gap-x-4">
{commentFormContext?.replyTo && {commentFormContext?.replyTo &&
<button <button