Skip to content

fix: preserve sticky positioning in MessageContent by using overflow-x-clip - #476

Open
HankGrimm wants to merge 1 commit into
vercel:mainfrom
HankGrimm:fix/message-content-overflow-clip
Open

fix: preserve sticky positioning in MessageContent by using overflow-x-clip#476
HankGrimm wants to merge 1 commit into
vercel:mainfrom
HankGrimm:fix/message-content-overflow-clip

Conversation

@HankGrimm

Copy link
Copy Markdown

What

Replaces overflow-hidden with overflow-x-clip on MessageContent's root div.

Why

overflow: hidden creates a new scroll container per the CSS spec, which breaks position: sticky for descendants (e.g. sticky action buttons rendered by markdown renderers like streamdown). overflow: clip still clips horizontal overflow without creating a scroll container, preserving sticky positioning.

How verified

Reviewed against CSS spec behavior differences between overflow: hidden and overflow: clip; change is a single Tailwind utility class swap with no logic changes.

Fixes #420

@vercel

vercel Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

@HankGrimm is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MessageContent: replace overflow-hidden with overflow-x-clip to preserve sticky positioning

1 participant