Next Link ruin my style (display flex)
<main>
<div className="flex">
{res.results.map((movie) => (
<Image
src={imagePath + movie.poster_path}
width={500}
height={500}
alt={movie.title}
className="w-full object-contain max-h-40"
/>
))}
</div>
</main>
<main>
<div className="flex">
{res.results.map((movie) => (
<Link href={`/${movie.id}`}>
<Image
src={imagePath + movie.poster_path}
width={500}
height={500}
alt={movie.title}
className="w-full object-contain max-h-40"
/>
</Link>
))}
</div>
</main>
I tried not using tailwind, pure css but still the same. This problem of mine was for 2 weeks already. I just want to replicate my react js code to next 13. Please someone help me!! Thanks a lot!!