You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The MediaCard component does not display the thumbnail image, even though the full image loads when clicked. This issue occurs because the component marks the media as failed when the thumbnail URL is unavailable, instead of attempting a fallback to the full image.
Steps to Reproduce
Open the application.
Observe that the media shows a "Failed to load media" message.
Click on the media, and the full image appears correctly.
Expected Behavior
If the thumbnail fails to load, the component should automatically switch to the full image (item.url) instead of displaying an error.
Actual Behavior
The component shows an error state instead of using the full image.
Clicking on the media reveals that the full image is available, meaning the failure message is misleading.
Proposed Solution
Implement a fallback mechanism:
If thumbnailUrl fails, automatically set item.url as the source.
Display an error only if both thumbnailUrl and item.url fail.
Ensure smooth loading behavior and prevent false "Failed to load media" messages.
Screenshot
### Before
### After
Record
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
What happened?
Description
The
MediaCard
component does not display the thumbnail image, even though the full image loads when clicked. This issue occurs because the component marks the media as failed when the thumbnail URL is unavailable, instead of attempting a fallback to the full image.Steps to Reproduce
Expected Behavior
item.url
) instead of displaying an error.Actual Behavior
Proposed Solution
thumbnailUrl
fails, automatically setitem.url
as the source.thumbnailUrl
anditem.url
fail.Screenshot
### Before
### After
Record
The text was updated successfully, but these errors were encountered: