rsnext/packages/next/client
Steven 61fab923eb
Fix Image srcset to ensure the component's width is the largest possible image (#18236)
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
2020-10-26 14:29:52 +00:00
..
dev Update to show build indicator while re-fetching GS(S)P data in dev (#16789) 2020-09-03 12:27:08 +00:00
head-manager.ts Fix empty title in head (#17430) 2020-09-28 23:12:07 +00:00
image.tsx Fix Image srcset to ensure the component's width is the largest possible image (#18236) 2020-10-26 14:29:52 +00:00
index.tsx Add locale false handling (#18115) 2020-10-22 17:08:01 +02:00
link.tsx Add locale false handling (#18115) 2020-10-22 17:08:01 +02:00
next-dev.js Update to show build indicator while re-fetching GS(S)P data in dev (#16789) 2020-09-03 12:27:08 +00:00
next.js Shave a few bytes off the bootstrap code (#14457) 2020-06-22 17:50:17 +00:00
normalize-trailing-slash.ts fix basepath trailing slash (#15200) 2020-07-15 23:53:31 +00:00
page-loader.ts Allow pages to be async modules to enable top-level-await (#17590) 2020-10-14 11:55:42 +02:00
performance-relayer.ts Add perf data experiment (#17956) 2020-10-16 16:31:09 -04:00
polyfills.js polyfills 2020-03-30 16:26:25 -04:00
router.ts Update to have default locale matched on root (#17669) 2020-10-08 11:12:17 +00:00
with-router.tsx Convert wrapper class to function component (#9095) 2019-11-09 14:56:59 -08:00