nextui-org / nextui

🚀 Beautiful, fast and modern React UI library.
https://nextui.org
MIT License
22.18k stars 1.56k forks source link

[BUG] - Image component now adds `height` style to image element #4213

Open WesleyKapow opened 20 hours ago

WesleyKapow commented 20 hours ago

NextUI Version

2.4.8

Describe the bug

At some point between 2.3.6 and 2.4.8, the Image component started adding a height inline style to the images. This messes up cases where the image would otherwise be scaled down (responsive) and makes images stretched as the height is now getting fixed via the new inline style.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

  1. Create an Image with width and height in 2.3.6
  2. Notice no height inline style.
  3. Upgrade to 2.4.8
  4. Notice new height inline style

Expected behavior

Upgrading should not have broken my image gallery :'(

Screenshots or Videos

No response

Operating System Version

macOs

Browser

Chrome

linear[bot] commented 20 hours ago

ENG-1642 [BUG] - Image component now adds `height` style to image element