Next Future Image Rounded?
Using
next/future/image
with tailwindcss and can't get an image to round
10 Replies
even if I add
not-prose
to that outside div (which removes tailwindcss/typography) it still doesn't make it round
Tried styling it directly with style={{ borderRadius: '9999px' }}
to no availUnknown User•3y ago
Message Not Public
Sign In & Join Server To View
Nothin
using a regular
<img>
tag works, which makes me think it's the next/future/image fault
ahhhhh it has to do with the object-contain
trying to figure out a fixUnknown User•3y ago
Message Not Public
Sign In & Join Server To View
Does not work either, found out it's actually impossible. You have to use
max-width/height
instead of height/width
, but next doesn't allow you to override height/width
Stack Overflow
How can I use "object-fit: contain" in CSS and still have a border ...
I'm trying to show an image in a "lightbox" style so that it will fill the available area on screen, in this case 90% of the width of the page and 70% of the height.
Using object-fit: con...
It may be possible with another layout, but the one I have currently doesn't work. Trying to get
icon {name}
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View