-
Notifications
You must be signed in to change notification settings - Fork 9
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
ABW-1983: Fix the issue with brokenImage #663
Conversation
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.
Hmm the screenshots does show improvements for sure, but the NFTs list is probably not not how we want it to look and NFTs are arguable the most important images... should you be using different content modes and resizeable
view modifier perhaps? perhaps @kugel3 has some ideas?
} | ||
.frame(height: .imagePlaceholderHeight) |
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.
Can't we use aspectRatio? or even just set the frame?
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.
Can't we use aspectRatio?
There is a number of possible expectations when it comes to layout. aspectRatio
is not a silver bullet. I think it's safe to reuse the sizing behavior of the image in the context of brokenImage
.
or even just set the frame?
I'm not sure if I understand your comment correctly @kugel3 - it was previously set and that's the source of the entire issue. We can't simply set the frame here as this component works in a number of different contexts.
When did this issue first appear? As far as I remember, this used to work fine everywhere. |
Not sure when exactly the regression got introduced, but all the recent changes to that file belong to you @kugel3 . |
So I reused the logic of We have two more things out there as well - the |
Fixed in competing PR |
Jira ticket: ABW-1983
Description
Fixes the issue with
brokenImage
. It's a problem common to all images that are displayed usingLoadableImage
under the hood, so the change is pretty significant. I think it looks better now for most cases. Thelist of NFTsvalidatorbrokenImage
placeholders still doesn't look that great, but I think it's not that big of a deal.Notes
There are some limitations to applied solution that I highlighted here.
How to test
Retest the layout of loadable images, when the image link is broken across the app.
Screenshot