image icon indicating copy to clipboard operation
image copied to clipboard

fit="content black background

Open Typ0genius opened this issue 2 years ago • 3 comments

This is the code:

<nuxt-img alt="" fit="contain" height="300" src="images/iphone-clay.png" width="100" />

And this is the result: Bildschirmfoto 2023-06-21 um 19 58 57

The remaining space is filled with black color. How can I make this transparent?

Typ0genius avatar Jun 21 '23 18:06 Typ0genius

Same here, this needs to be fixed.

goodpixels avatar Jul 29 '23 17:07 goodpixels

did you ever figure this one out? to get it to be transparent

pixelpaulaus avatar Dec 28 '23 09:12 pixelpaulaus

Kind of. I ended up passing a background modifier prop to NuxtPicture with a transparent colour:

''' :modifiers="{ b: '#00000000' }" '''

goodpixels avatar Dec 28 '23 09:12 goodpixels