fix(nextjs): outlines not rendering properly

This commit is contained in:
sauravniraula 2025-08-06 18:49:22 +05:45
parent 0fe272d82c
commit ce71337cd6
No known key found for this signature in database
GPG key ID: 60FCC1B5A5E83326

View file

@ -97,12 +97,11 @@ export function OutlineItem({
{/* Main Title Input - Add onFocus handler */}
<div id={`outline-item-${index}`} className="flex flex-col basis-full gap-2">
{/* Editable Markdown Content */}
{isStreaming ? <textarea
defaultValue={slideOutline || ''}
onBlur={(e) => handleSlideChange(e.target.value)}
className="text-sm flex-1 font-normal bg-transparent outline-none overflow-y-hidden"
placeholder="Content goes here"
/> : <MarkdownEditor
{isStreaming ? <p
className="text-sm flex-1 font-normal"
>
{slideOutline || ''}
</p> : <MarkdownEditor
key={index}
content={slideOutline || ''}
onChange={(content) => handleSlideChange(content)}