-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[lexical-playground][image-node] Bug Fix: Load image error UI #6111
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
LGTM overall!
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.
May I suggest using SVG instead of PNG? You can take this one (MIT license) for example: https://www.svgrepo.com/svg/377374/image-broken
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.
eaf553e
to
cf175ec
Compare
Currently, if an image fails to load because of a network error, the page is down, etc. the Node is silently inserted but no UI is shown.
Description
Adding a fallback image that would substitute an original image if it fails to load due to a network failure etc.
Closes: #5564
Test plan
#5564 (comment)
Before
image-before.mov
After
image_after.mov
Insert relevant screenshots/recordings/automated-tests