themefisher / bookworm-light-nextjs

Bookworm is a minimal NextJs, Tailwind CSS blog starter template.
https://bookworm-light-nextjs.vercel.app/
MIT License
188 stars 75 forks source link

Resolve image rendering issue #13

Closed Icegreeen closed 1 year ago

Icegreeen commented 1 year ago

This PR addresses the Image component to ensure that images are rendered correctly. The latest versions of Next.js library requires the height and width properties to be passed as numeric values; therefore, they should be provided without quotation marks.

Changes:

~ (Correction) Updated width and height properties to accept numerical values instead of strings.

~ (Improvement) Centered images within the div using the flex justify-center items-center classes.

Resolved the issue with the <Image /> component.

width={150}

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
bookworm-light-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 7, 2023 10:58pm
Icegreeen commented 1 year ago

~ @tfsomrat @mehedi-sharif