-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
fix(files): Add proper visual loading feedback for image preview #45431
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This is supposed to be a placeholder.
Imho, loading spinners are good for individual element loading. |
How t was supposed to look like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of the two, I think that the loading spinner looks nicer and is just as clear
Makes sense, like a loading skeleton. So I am fine with whatever the @nextcloud/designers prefer :) |
For the record, my point is not about if it's clearer or not, but the fact that 20 spinners shown drag too much attention for very little value (it's just a preview) :) Anyway, as Ferdinand said: I am fine with whatever the @nextcloud/designers prefer 😉 |
I would agree here, the square being distracting is rather a result of the color of the skeleton screen component being too light in dark mode IMO, so darkening the color of the squares would already make it look less busy. What do you think? |
Seconded 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice with the skeleton squares, and agree with the feedback of adjusting the color a bit (lightening/darkening).
An additional thing: When it’s a file which does not have a preview, like a PDF for example – why don’t we just instantly show the PDF filetype icon?
Because we don't always know if there is a preview. It can be available but not generated. |
Right, so what I’m saying is that we can show the filetype icon instantly. Preview could be shown as soon as available. That makes things feel more instant instead of having loading bars/skeletons here. |
Summary
Currently only a white square is shown while loading the icon, this add a loading indicator.
(Especially the previous one had a short flash when both the background and icon are shown at the same time).
Screen recording
Before
before.mp4
After
after.mp4
Checklist