-
Notifications
You must be signed in to change notification settings - Fork 109
🩹 (#2463): show a fallback image when image can't be loaded #2466
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
🩹 (#2463): show a fallback image when image can't be loaded #2466
Conversation
|
/compile |
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.
@vinicius73 some design feedback:
- The icon can be the general image icon, does not need to be a specific "broken" one: https://fonts.google.com/icons?selected=Material%20Icons%3Aimage%3A
- Color should be grey, also for the text, color-text-maxcontrast. It’s not a "red error" type big deal. :)
- The message "Failed to load image" can show below together with the filename, as to not introduce another text block above. Just: "Failed to load [filename]" like "Failed to load image2.jpg"
- The initial
/should be removed, it’s too technical
It's the description of the image, I've put it as an example. |
julien-nc
left a comment
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.
I agree with @jancborchardt comments.
Code-wise, nothing to add. I guess the ErrorLoadImage is part of the solution we figured out with @mejo- about knowing when all images are loaded in Collectives, right?
The error could be renamed to LoadImageError but that's nitpicking 😁.
|
@jancborchardt what is the best alternative? Original/raw src parameter. (for now I am using this) With full URL used to load image (parsed by ImageView component) |
|
/compile |
I would vote for |
mejo-
left a comment
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.
Thanks a lot for implementing this, @vinicius73 <3
3ae1576 to
f578231
Compare
|
/compile |
|
/compile |
|
/compile amend |
1f879a1 to
8f3b574
Compare
|
@juliushaertl I've reverted this commit: a70841a It was generating error 500 from API. |
Signed-off-by: Vinicius Reis <[email protected]>
change error icon and color and move error message Signed-off-by: Vinicius Reis <[email protected]>
Signed-off-by: Vinicius Reis <[email protected]>
Signed-off-by: Vinicius Reis <[email protected]>
Signed-off-by: Vinicius Reis <[email protected]>
direct access Signed-off-by: Vinicius Reis <[email protected]>
Signed-off-by: Vinicius Reis <[email protected]>
Signed-off-by: Vinicius Reis <[email protected]>
Signed-off-by: Vinicius Reis <[email protected]>
Signed-off-by: Vinicius Reis <[email protected]>
4f6c948 to
a114f12
Compare
|
Rebased to retrigger tests after #2495 was merged |
|
/compile |
Signed-off-by: nextcloud-command <[email protected]>


Summary
Display a fallback image when image loading fails.