Skip to content

fix: keep images within the screen on mobile - #570

Merged
TrueBrain merged 1 commit into
mainfrom
fix/mobile-image-width
Nov 21, 2026
Merged

TrueBrain merged 1 commit into
mainfrom
fix/mobile-image-width

Conversation

@TrueBrain

Copy link
Copy Markdown
Owner

Fixes #142.

  • Images are capped at min(900px, 100%) with height: auto. Big images now shrink on small screens. Small images are not stretched.
  • .thumbinner is capped at min(906px, 100%). Without it, thumbs with an explicit size (e.g. |1200px) still overflowed.
  • Tested in Chromium at 375px and 1280px with plain and |thumb images (1600px and 100px wide). On desktop nothing changes, except |1200px thumbs: their box was 1202px and got clipped, now it is 906px. The e2e suite passes. Not tested in Firefox, Safari or on a real phone.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.48%. Comparing base (2cf2ec5) to head (a7730ac).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #570   +/-   ##
=======================================
  Coverage   83.48%   83.48%           
=======================================
  Files          52       52           
  Lines        2798     2798           
  Branches      423      423           
=======================================
  Hits         2336     2336           
  Misses        351      351           
  Partials      111      111           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@TrueBrain
TrueBrain merged commit cfc0736 into main Nov 21, 2026
15 checks passed
@TrueBrain
TrueBrain deleted the fix/mobile-image-width branch November 21, 2026 13:04
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.

Images on mobile can be wider than the screen

1 participant