61fab923eb
There was a bug when the user defines a width on the Image component, but a larger size image is requested. This is because the browser uses the `srcset` to decide which image size to request and we had the srcset basically hardcoded. This PR fixes the behavior so that the `srcset` will never be larger than the `width` defined on the component. It also fixes a bug where the preload srcset did not match the img srcset. - Related to #18147 - Related to #18122 |
||
---|---|---|
.. | ||
dev | ||
head-manager.ts | ||
image.tsx | ||
index.tsx | ||
link.tsx | ||
next-dev.js | ||
next.js | ||
normalize-trailing-slash.ts | ||
page-loader.ts | ||
performance-relayer.ts | ||
polyfills.js | ||
router.ts | ||
with-router.tsx |