Skip to content

Commit 1ab9848

Browse files
committed
Add width/maxwidth to fix flexbox lazy loading
1 parent 4af3611 commit 1ab9848

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/next/client/image.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ export default function Image({
228228
divStyle = {
229229
position: 'relative',
230230
paddingBottom: `${ratio}%`,
231+
maxWidth: '100%',
232+
width,
231233
}
232234
imgStyle = {
233235
height: '100%',

0 commit comments

Comments
 (0)