fix(files): Add proper visual loading feedback for image preview#45431
fix(files): Add proper visual loading feedback for image preview#45431
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 |
marcoambrosini
left a comment
There was a problem hiding this comment.
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 👍 |
jancborchardt
left a comment
There was a problem hiding this comment.
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