Skip to content

Large image rendering issue in Next js #146398

Discussion options

You must be logged in to vote

You can fix this by locking the image's aspect ratio. Check out Shadcn's AspectRatio component or Tailwind's aspect ratio
https://ui.shadcn.com/docs/components/aspect-ratio
https://v1.tailwindcss.com/course/locking-images-to-a-fixed-aspect-ratio

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@mecodeatlas
Comment options

Answer selected by aziz-codes
Comment options

You must be logged in to vote
1 reply
@aziz-codes
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working correctly Programming Help Programming languages, open source, and software development.
3 participants