Repository navigation
Open images of articles large, with zoom, and stop dimming them - #172
Merged
Merged
Conversation
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 Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Fiona · project thread
What
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.+/-,0to fit again.web/src/lib/zoom.ts, tested with a simple model and random input).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.docs/implementation.md, a line indocs/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 nopnpm 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