Skip to content

Fit every image to the Mac lightbox so it stops snapping smaller - #1472

Merged
dylanplayer merged 1 commit into
mainfrom
codevisor/focaccia
Nov 24, 2026
Merged

dylanplayer merged 1 commit into
mainfrom
codevisor/focaccia

Conversation

@dylanplayer

Copy link
Copy Markdown
Member

Why

Opening an image in the Mac lightbox could show it large and then snap it smaller. While the full image loads, the lightbox shows the chat's thumbnail stretched to fit. The full image then showed at its real size whenever that was smaller than the lightbox.

What changed

The Mac image viewer now fits every image to the space it has, enlarging small images the way iOS already does. The placeholder and the full image are the same size, so nothing snaps. Double-click still zooms in, and pinch zooms up to 8×; you can't zoom out past the fitted size. File tabs use the same viewer, so small images open enlarged there too.

Testing

  • In the macOS dev app, with a temporary 1-second load delay, I recorded a 400×300 image opening and measured its edges on every frame. It kept the same size, within a pixel, from the first frame through the swap to the full image.
  • Double-click zoom still works on the small image.
  • bun run check passes.

🤖 Generated with Claude Code

While an image loads, the lightbox shows the chat's thumbnail stretched
to fit. On the Mac the full image then showed at its real size when that
was smaller than the lightbox, so the image opened large and snapped
smaller. Images now always fit the lightbox, as they already do on iOS,
so the placeholder and the full image are the same size.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@dylanplayer
dylanplayer merged commit 87b1e70 into main Nov 24, 2026
@dylanplayer
dylanplayer deleted the codevisor/focaccia branch November 24, 2026 19:33
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