Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-code-block-horizontal-scroll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"streamdown": patch
---

Enable horizontal scrolling on code blocks so long lines are accessible instead of being clipped by `overflow-hidden`.
2 changes: 1 addition & 1 deletion packages/streamdown/lib/code-block/body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const CodeBlockBody = memo(
<div
className={cn(
className,
"overflow-hidden rounded-md border border-border bg-background p-4 text-sm"
"overflow-x-auto rounded-md border border-border bg-background p-4 text-sm"
)}
data-language={language}
data-streamdown="code-block-body"
Expand Down
Loading