HTML emails with fixed-width tables (e.g. <table width="600">) were being cut off on the right because the WebView's viewport is narrower than the table
Added overflow-x: hidden to body and max-width: 100% on all elements to prevent overflow
Forced table { width: 100%; } so fixed-pixel-width email tables reflow to fit the viewport
Added td/th { overflow-wrap/word-break } for text wrapping in table cells
Added pre { white-space: pre-wrap; } so preformatted text wraps instead of stretching the page
Test plan
New unit test prevents horizontal overflow so wide HTML emails are not cut off verifies all four CSS rules are injected into the email HTML
All 476 tests continue to pass (task check-fast via pre-commit hook)
## Summary
- HTML emails with fixed-width tables (e.g. `<table width="600">`) were being cut off on the right because the WebView's viewport is narrower than the table
- Added `overflow-x: hidden` to body and `max-width: 100%` on all elements to prevent overflow
- Forced `table { width: 100%; }` so fixed-pixel-width email tables reflow to fit the viewport
- Added `td/th { overflow-wrap/word-break }` for text wrapping in table cells
- Added `pre { white-space: pre-wrap; }` so preformatted text wraps instead of stretching the page
## Test plan
- [x] New unit test `prevents horizontal overflow so wide HTML emails are not cut off` verifies all four CSS rules are injected into the email HTML
- [x] All 476 tests continue to pass (`task check-fast` via pre-commit hook)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
<table width="600">) were being cut off on the right because the WebView's viewport is narrower than the tableoverflow-x: hiddento body andmax-width: 100%on all elements to prevent overflowtable { width: 100%; }so fixed-pixel-width email tables reflow to fit the viewporttd/th { overflow-wrap/word-break }for text wrapping in table cellspre { white-space: pre-wrap; }so preformatted text wraps instead of stretching the pageTest plan
prevents horizontal overflow so wide HTML emails are not cut offverifies all four CSS rules are injected into the email HTMLtask check-fastvia pre-commit hook)🤖 Generated with Claude Code