-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When the user clicks a thumbnail image, show the full-size image in an image viewer widget #341
base: main
Are you sure you want to change the base?
Conversation
There is no close button for Image previewer. Only the button to close the entire program. |
Yeah, many bugs currently, all the widgetsabout image viewer, I set absolutly position, so maybe you cannot see the button. Now it's better, but still some bugs :( |
robrix/src/image_viewer_modal.rs Line 15 in cd9c6a4
Line 210 in cd9c6a4
We can keep this pr open and I shall put my energies elsewhere issues, IMHO |
Right, but in general, the Matrix SDK can provide image metadata including dimensions, so you can use that as a placeholder until you download the entire image. Even if you don't know the size of the image, you can just show the thumbnail image in the ImageViewer widget until the full-size image has been fully-fetched, and then you will know the size of the full image. Regardless, it should not matter what the image's size is. The ImageViewer should be full-screen (
You're correct, the Modal widget doesn't. We can modify it, but in general, the Modal widget has lots of issues right now. Don't use the Modal widget; you can copy my
I don't understand what this means, sorry.
Yes, of course, you'll have to do it on a background thread/task. We already have the infrastructure for this. In summary, it sounds like you're a bit stuck on this, which is totally fine. Thanks for submitting your work thus far; in the future, I (or others) can help you complete the ImageViewer widget. |
Marking this as |
Got all, thanks very much! |
issue #327
There is no loading spinner currently.
It's a bit much so that I think you can conduct a round of reviews. :)
Screencast from 2025-01-22 12-37-15.webm