Skip to content

Open images of articles large, with zoom, and stop dimming them - #172

Merged
FionaPreroll merged 1 commit into
mainfrom
claude/project-thread-c677f1
Nov 23, 2026
Merged

FionaPreroll merged 1 commit into
mainfrom
claude/project-thread-c677f1

Conversation

@FionaPreroll

Copy link
Copy Markdown
Owner

Requested by Fiona · project thread

What

  • Large view of images (web/src/lib/components/ImageViewer.svelte). A click, a tap or Enter on an image of an article that is no link, or on the picture a feed gives beside the text, opens it over the whole window.
    • Zoom: two fingers, the wheel (and a touchpad pinch), a double tap, the zoom buttons, +/-, 0 to fit again.
    • Move: a finger, the mouse, the arrow keys; the image stops where its edge meets the edge of the window (web/src/lib/zoom.ts, tested with a simple model and random input).
    • Under the image stand its title and its alternative text, each once (on xkcd the title holds the joke).
    • Closing: the close button, Escape, a tap beside the image, and the browser's or phone's back: the view pushes an entry of its own to the history, so back closes the image and leaves the article open.
    • While it is open the reader's shortcuts wait.
  • Images in the text that are no link get tabindex, role="button", aria-haspopup="dialog" and a zoom-in cursor, so keyboard and screen reader can open them too. An image that is a link keeps following its link.
  • No more dimming: images in articles and the magazine are no longer darkened on the dark theme.
  • Texts in all 16 languages, two icons, docs: 5.49 in docs/implementation.md, a line in docs/architecture.md, and what was decided without Fiona.

Checks

In web/: pnpm lint, pnpm check, pnpm test (698 passed), pnpm build. Nothing the page and the server say to each other changed, so no pnpm e2e. Tried in Chromium as a Pixel 7 with the demo: pinch, drag, double tap, buttons, back and a tap beside the image all do what they should.


Generated by Claude Code

A click, a tap or Enter on an image of an article that is no link, or on
the picture a feed gives beside the text, opens it over the whole window:
two fingers, the wheel, a double tap, buttons and +/- zoom it, a finger,
the mouse and the arrow keys move it, and its title and alternative text
stand under it, which on webcomics like xkcd hold the joke. It makes an
entry in the history of its own, so back closes the image and not the
article; so do its close button, Escape and a tap beside the image.

Images are no longer dimmed on the dark theme.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WQbEhUCFbnvY5R8BGbY44Y
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 78.94737% with 32 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
web/src/lib/components/ImageViewer.svelte 76.36% 15 Missing and 11 partials ⚠️
web/src/lib/components/ArticleBody.svelte 78.57% 0 Missing and 6 partials ⚠️

📢 Thoughts on this report? Let us know!

@FionaPreroll
FionaPreroll merged commit d8ed773 into main Nov 23, 2026
26 checks passed
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