Skip to content
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

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

Open
WesleyKapow opened this issue Dec 2, 2024 · 1 comment
Open

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

WesleyKapow opened this issue Dec 2, 2024 · 1 comment

Comments

@WesleyKapow
Copy link

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

Copy link

linear bot commented Dec 2, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant