feat(timeline): sticky chat-input bovenaan timeline-sectie
Verplaats UserChatInput naar boven in IdeaTimeline en geef de wrapper sticky top-0 z-10 bg-background border-b border-border — input blijft zichtbaar terwijl de timeline-items eronder doorscrollt. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
a3303a605b
commit
22781365e6
1 changed files with 8 additions and 3 deletions
|
|
@ -128,7 +128,13 @@ export function IdeaTimeline({
|
|||
const showChatInput = planMd !== null
|
||||
|
||||
return (
|
||||
<div className="space-y-4" {...debugProps('idea-timeline', 'IdeaTimeline', 'components/ideas/idea-timeline.tsx')}>
|
||||
<div {...debugProps('idea-timeline', 'IdeaTimeline', 'components/ideas/idea-timeline.tsx')}>
|
||||
{showChatInput && (
|
||||
<div className="sticky top-0 z-10 bg-background border-b border-border pb-3 mb-4" data-debug-id="idea-timeline__chat-input">
|
||||
<UserChatInput ideaId={ideaId} isDemo={isDemo} />
|
||||
</div>
|
||||
)}
|
||||
<div className="space-y-4">
|
||||
{merged.length === 0 ? (
|
||||
<p className="text-sm text-muted-foreground py-8 text-center italic">
|
||||
Nog geen activiteit op dit idee.
|
||||
|
|
@ -252,8 +258,7 @@ export function IdeaTimeline({
|
|||
})}
|
||||
</ol>
|
||||
)}
|
||||
|
||||
{showChatInput && <UserChatInput ideaId={ideaId} isDemo={isDemo} />}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue