-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Open
Labels
webRelates to opencode on web / desktopRelates to opencode on web / desktop
Description
Description
On mobile viewports (e.g., iPhone 14 Pro Max at 430px width), the user message box in the share page overflows horizontally, breaking the page layout and causing horizontal scrolling.
Root Cause
The [data-component="user-message"] CSS lacks proper width constraints (min-width: 0 and max-width: 100%) to allow flex children to shrink below their content size. Additionally, the [data-slot="user-message-text"] element needs overflow-wrap: break-word and word-break: break-word to handle long unbroken text.
Steps to Reproduce
- Open a shared session page (e.g.,
/share/[shareID]) - View on mobile viewport or use device emulation (iPhone 14 Pro Max)
- Observe the user message content overflowing horizontally
Expected Behavior
User message content should wrap properly and respect container boundaries on all viewport sizes.
Affected Files
packages/ui/src/components/message-part.css
cuevaionelsonPires5
Metadata
Metadata
Assignees
Labels
webRelates to opencode on web / desktopRelates to opencode on web / desktop