-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
🐛 show real image ratio in gallery redesign #4649
🐛 show real image ratio in gallery redesign #4649
Conversation
✅ Deploy Preview for koda-nuxt ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
@exezbcz, there isn't a design for wide images in Figma; how do we want to handle it? Is this way okay? |
I didn't want to add the event listener, so it won't resize responsively (you need to refresh between mobile and desktop), but that's usually only possible with devtools or if somebody wants to make their screen super small. I think it's okay, but maybe @roiLeo can take a look. Also, I don't know if artists creating full-width pictures will be happy to have those images fitted inside a square. |
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.
tested on /rmrk/gallery/13528762-f091ff4a3f410ee872-ROXYNFT_FUN_BANNERS-FUN_BANNER_030-0000000000000030?redesign=true
With this change many items will now have "black square" frame, I'm not sure this is the best option
ex:
/rmrk/gallery/10371533-b6c51bd8c8868edc70-6ML5P-KUSAMA_WONDERLAND_037_OR_OCCUPIED-0000000000000043?redesign=true
or /snek/gallery/185770742-2?redesign=true
hmm, my bad. I thought that like 90% are square images and different ratios are quite rare. Not sure what is the best solution for this. Possible solution is add a full screen button to the top right button section? Then it would be ok if we scale-crop the art to gallery img box. Most nft marketplaces are designed for square content. Again, what are your thoughts? Also curious about the data, how many images are not square? some screens of how the major marketplaces deal with portrait content: |
In #4593 you've added it under the img box
I would be in favour of removing the black stripes
I don't think you can tell, but you have to assume that any image size can be added |
figure > img.image-media__image { | ||
object-fit: cover; | ||
const isMobile = ref(window.innerWidth < 768) | ||
</script> |
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.
missing new line
object-fit: cover; | ||
const isMobile = ref(window.innerWidth < 768) | ||
</script> | ||
<style> |
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.
missing scoped or better targeting of image
So are we going with this version? Can somebody confirm what should the final outcome here look like? |
yup, that was only quick idea and i posted it. Nothing rock solid imo :D
Well, its not that bad removing the stripes, not against it. What if we add the fullscreen button before production release?
yup Sooo, lets handle it like on the nft cards? |
I'm sorry if I'm misunderstanding here, but can somebody tell me what should be done here to finish up? I don't want to stall, but I didn't get the sense the discussion was over. |
if it's ok for @exezbcz it's ok for me but you still got some small code changes request |
updated 👍🏻 |
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.
✅ code lgtm
Co-authored-by: roiLeo <medina.leo42@gmail.com>
Code Climate has analyzed commit b6f7e1a and detected 0 issues on this pull request. View more on Code Climate. |
pay 40 usd |
😍 Perfect, I’ve sent the payout 🪅 Let’s grab another issue and get rewarded! |
Mr @yangwao was notified |
pay 40 |
😍 Perfect, I’ve sent the payout 🪅 Let’s grab another issue and get rewarded! |
Thank you for your contribution to the KodaDot NFT gallery.
👇 _ Let's make a quick check before the contribution.
PR Type
Context
Before submitting pull request, please make sure:
Optional
Had issue bounty label?
Community participation
Screenshot 📸