Skip to content

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

Merged
Ark0N merged 2 commits into
Ark0N:masterfrom
TeigenZhang:fix/mobile-response-viewer-typography
Jul 12, 2026
Merged

fix(mobile): improve response-viewer readability on phones#142
Ark0N merged 2 commits 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

Teigen and others added 2 commits July 6, 2026 10:36
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.
…s on-screen on iOS (PR Ark0N#142)

- 92vh on iOS Safari measures the large viewport; with browser chrome visible the
  panel top (header + close button) clipped off-screen. 88vh fallback + 92dvh
  matches the repo's established dvh idiom.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Ark0N Ark0N merged commit b74a904 into Ark0N:master Jul 12, 2026
2 checks passed
@Ark0N

Ark0N commented Jul 12, 2026

Copy link
Copy Markdown
Owner

Merged — thank you @TeigenZhang! Nice catch on phone readability. One review commit on top: 92vh uses the iOS large-viewport unit, which clipped the response-viewer header (and its close button) off-screen with Safari chrome visible — now an 88vh fallback + 92dvh pair per the repo's established idiom. 🙏

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.

3 participants