Repository navigation
Conversation
…est for ImageView to increase coverage
Per suggestion by t3chguy in original PR element-hq#31932 (comment)
Move navigation buttons beside the image, preserve focus at boundaries, and disable navigation during pagination. Reset zoom, rotation, and panning when the image changes. Addresses gaelledel's design review (points 1 and 2) on element-hq#31932.
…e-navigation-update
Author
|
I can't add the |
5 tasks done
A reply inside a thread lives in the thread's timeline, not the room's, so the lightbox now steps through that thread's images. A thread root is part of the main timeline and still navigates the room's images. Adds unit tests for NavigableImageViewDialog and Playwright tests for SVG images and thread navigation.
Member
|
Thanks: @kcfancher if you are able to make a shared component version of this, it would make it much more aligned with the direction of the code. |
A view that shows previous/next buttons beside the lightbox image, driven by a view model. The buttons are disabled while the previous image is being loaded, and focus stays inside the view when the focused button disappears.
The navigation state and timeline pagination move out of NavigableImageViewDialog into a view model, and ImageView renders the shared LightboxNavigationView in place of its own buttons. Behaviour changes along the way: - The last page of history is now reachable - "Previous" no longer jumps to the oldest image after paginating - Failures to load older history are logged instead of swallowed - Arrow keys are always handled while navigation is shown
Author
|
@dbkr I just pushed up those changes, I also included a commit adding support for navigating a threads images in the lightbox. |
dbkr
requested changes
Nov 26, 2026
dbkr
left a comment
Member
There was a problem hiding this comment.
Thanks, have given it a proper look through. Basically looks okay, just some things that need fixing up.
dbkr
reviewed
Nov 30, 2026
This branch was successfully deployed
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.
This PR fixes #337 by picking up where PR#31932 left off. Original work by @Snamhdaen with additional changes to add the review feedback.
User facing changes
Right now the Lightbox only shows one image which has to be closed before navigating to another. This PR adds Previous/Next buttons on either side of the image to navigate between images while in the Lightbox.
Changes since original PR (#31932) based on review feedback in that PR
Screenshots
Before

After

Testing
Checklist
public/exportedsymbols have accurate TSDoc documentation.AI assistance