e5b2bd1704
This fixes `next/image` to properly ignore inherited styles applied to the `img` tag by a parent element. Image styling should **always** be done by a wrapper element—not to the image itself! --- Fixes #19817 Fixes #19964
15 lines
365 B
JavaScript
15 lines
365 B
JavaScript
import Image from 'next/image'
|
|
import React from 'react'
|
|
import * as styles from './prose.module.css'
|
|
|
|
const Page = () => {
|
|
return (
|
|
<div className={styles.prose}>
|
|
<p>Hello World</p>
|
|
<Image id="prose-image" src="/test.jpg" width="400" height="400"></Image>
|
|
<p id="stubtext">This is the rotated page</p>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default Page
|