Skip to content

User message box overflows horizontally on mobile viewports #6200

Closed as not planned

Description

@cuevaio

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

  1. Open a shared session page (e.g., /share/[shareID])
  2. View on mobile viewport or use device emulation (iPhone 14 Pro Max)
  3. Observe the user message content overflowing horizontally
Image

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

Activity

  1. github-actions commented on Dec 26, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    This issue also relates to similar layout/viewport handling challenges. Feel free to ignore if none of these address your specific case.

  2. added a commit that references this issue on Dec 26, 2025
    ae1062b
  3. thdxr commented on Mar 25, 2026

    @thdxr
    Member

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  4. removed
    webRelates to opencode on web / desktop
    on May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions