Skip to content

fix(happy-app): prevent message and table content from overflowing on mobile web#853

Open
EricSeastrand wants to merge 2 commits intoslopus:mainfrom
EricSeastrand:fix/mobile-web-message-overflow
Open

fix(happy-app): prevent message and table content from overflowing on mobile web#853
EricSeastrand wants to merge 2 commits intoslopus:mainfrom
EricSeastrand:fix/mobile-web-message-overflow

Conversation

@EricSeastrand
Copy link

Summary

  • Adds minWidth: 0 to the message content flex container so text wraps properly on narrow viewports
  • Removes alignSelf: 'flex-start' from agent message container so it stretches to fill available width instead of sizing to content
  • Adds overflow: hidden and flex constraints to table containers to prevent wide tables from pushing the message area beyond the viewport

Test plan

  • On mobile web, long text messages should wrap within the viewport — no horizontal scrolling
  • Wide tables (many columns) should clip/scroll within the message bubble, not overflow the page
  • Desktop layout unchanged

🤖 Generated with Claude Code
via Happy

EricSeastrand and others added 2 commits March 13, 2026 10:42
Add minWidth: 0 to messageContent flex container so text wraps properly
on narrow viewports. Change table container from alignSelf: flex-start
to maxWidth: 100% so tables clip instead of overflowing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove alignSelf: 'flex-start' from agentMessageContainer so it
stretches to fill available width (minus margins) instead of sizing
to content. This prevents wide tables from pushing the entire message
area beyond the viewport. Add overflow: hidden to messageContent and
flex constraints to table containers as belt-and-suspenders.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
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.

1 participant