Skip to content

fix(mobile): improve response-viewer readability on phones#142

Open
TeigenZhang wants to merge 1 commit into
Ark0N:masterfrom
TeigenZhang:fix/mobile-response-viewer-typography
Open

fix(mobile): improve response-viewer readability on phones#142
TeigenZhang wants to merge 1 commit into
Ark0N:masterfrom
TeigenZhang:fix/mobile-response-viewer-typography

Conversation

@TeigenZhang

Copy link
Copy Markdown
Contributor

Summary

The mobile media query only overrode .response-viewer-body with a flat font-size: 12px / padding: 12px, leaving the desktop response-viewer typography system (--rv-content-max, .rv-text pre, heading scale defined in styles.css) with no mobile tuning. On phones the transcript read cramped and code/diagrams were unnecessarily tiny.

This tunes the existing response-viewer selectors for small screens:

  • Body text 12px → 14.5px / line-height 1.65 for comfortable reading
  • Code blocks get phone-sized padding + slight negative side-margin, 11.5px code
  • Heading scale (h1 1.35em / h2 1.2em / h3 1.08em)
  • Content spans full width on mobile (--rv-content-max: 100%)
  • Cap the panel at 92vh

Layers cleanly on top of the existing response-viewer selectors in styles.cssdesktop rendering is unchanged; all changes are scoped inside the mobile media query.

Test plan

  • Open the response viewer on a phone-width viewport; confirm body text, code blocks, and headings render at the new sizes
  • Confirm ASCII/box diagrams still scroll correctly inside pre.rv-diagram
  • Confirm desktop response viewer is visually unchanged

The mobile media query only overrode .response-viewer-body with a flat
font-size: 12px / padding: 12px, leaving the desktop response-viewer
typography system (--rv-content-max, .rv-text pre, heading scale) with no
mobile tuning. Bump body text to 14.5px/1.65, give code blocks phone-sized
padding and 11.5px code, scale headings (h1 1.35em / h2 1.2em / h3 1.08em),
let content span full width, and cap the panel at 92vh.

Layers cleanly on top of the existing response-viewer selectors in
styles.css; desktop rendering is unchanged.
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