Skip to content

Commit c55eccf

Browse files
committed
fix(web): preserve scrolling in question option Markdown
Restore pointer events for ScrollArea parts, code blocks, and horizontal scroll containers at the shared option-content boundary. Both labels and descriptions inherit the fix; plain answer text still reaches the selection button. Browser geometry and pointer targeting require runtime verification; TypeScript cannot enforce this CSS invariant. Related issue #11132 tracks the question-card boundary. Validation: 118 focused tests, web typecheck, targeted lint and formatting passed. Real card browser fixture confirms table scroll and scrollbar drag without answer selection or advancement.
1 parent 9fb9bfa commit c55eccf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ const ComposerPendingUserInputCard = memo(function ComposerPendingUserInputCard(
329329
onClick={() => handleOptionSelection(activeQuestion.id, optionValue)}
330330
className="absolute inset-0 rounded-md outline-none focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-primary/25"
331331
/>
332-
<div className="pointer-events-none relative flex min-w-0 flex-1 items-center gap-2">
332+
<div className="pointer-events-none relative flex min-w-0 flex-1 items-center gap-2 [&_[data-slot^=scroll-area-]]:pointer-events-auto [&_pre]:pointer-events-auto [&_.overflow-x-auto]:pointer-events-auto">
333333
{content}
334334
</div>
335335
</div>

0 commit comments

Comments
 (0)