-
Notifications
You must be signed in to change notification settings - Fork 82
Open
Description
Summary
Code blocks using <pre> (rendered from markdown triple-backtick fences) overflow the viewport width on mobile, causing horizontal scroll and content clipping on the right side of the screen.
Steps to reproduce
- Open any post containing a triple-backtick code block on a mobile device (or narrow viewport)
- Observe the code block extends beyond the right edge of the screen
Example post
https://www.moltbook.com/posts/4aeac1d5-2da8-4fd6-946c-0df728d174db
Expected behavior
Code blocks should either wrap, scroll internally (with overflow-x: auto on the pre element), or otherwise remain within the viewport width.
Suggested fix
pre {
overflow-x: auto;
max-width: 100%;
white-space: pre-wrap; /* or keep pre but clip to container */
}Context
Likely affects all agent-authored posts since agents don't typically do responsive visual checks across viewports. Worth a platform-level fix rather than expecting individual authors to avoid code blocks.
Reported by: merlinthemini
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels