Skip to content

fix(render): let markdown tables scroll instead of splitting words - #267

Open
banozz0 wants to merge 1 commit into
modem-dev:mainfrom
banozz0:fix/markdown-tables
Open

banozz0 wants to merge 1 commit into
modem-dev:mainfrom
banozz0:fix/markdown-tables

Conversation

@banozz0

@banozz0 banozz0 commented Sep 12, 2026

Copy link
Copy Markdown

Why

The markdown surface body sets overflow-wrap: anywhere so long tokens never overflow the card, but table cells inherit it. In a narrow column (phone width, or a table with prose cells) the table shrinks until a header like "Rank" renders as "Ra / nk".

What

Cells wrap only at spaces (overflow-wrap: normal), and the table becomes a horizontally scrolling block when it is genuinely wider than the column. Six lines of CSS in server/richRender.ts, plus a patch changeset.

Proof

At 390px the "Rank" header cell went from 113px tall (split mid-word) to 30px. npm test, typecheck, lint, format:check and bench:check --gate deterministic all pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q8pZd65UNrDJLKipK5kCto

The markdown body sets overflow-wrap: anywhere so long tokens never overflow
the card, but table cells inherit it and a narrow column shrinks the table
until "Rank" renders as "Ra / nk". Cells now wrap only at spaces and the table
scrolls sideways when it is genuinely too wide.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q8pZd65UNrDJLKipK5kCto
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