Fix images on mobile #96

Merged
jonny merged 2 commits from fix_images_on_mobile into develop 2026-07-02 21:04:56 +02:00
Owner

There’s a slight css tweak to the height of images

But the real fix is an artisan command to re-scale the images

There’s a slight css tweak to the height of images But the real fix is an artisan command to re-scale the images
ProcessMedia was using resize(), which distorts images that aren't the
target aspect ratio; scale() preserves it. Existing medium/small
variants generated before this fix need regenerating, so add an
artisan command (with --dry-run) to do that, plus feature tests.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
max-width: 100% alone lets img/picture height stay at intrinsic size,
so on narrow viewports images could still overflow vertically or look
squashed. Adding height: auto keeps the aspect ratio correct as width
scales down.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
jonny merged commit 11e2c469cb into develop 2026-07-02 21:04:56 +02:00
jonny deleted branch fix_images_on_mobile 2026-07-02 21:04:56 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jonny/jonnybarnes.uk!96
No description provided.