Unverified Commit fb79c116 authored by Morgan Feeney's avatar Morgan Feeney Committed by GitHub

Update 01-images.mdx (#51532)

Due to the size of grid tracks specified in the CSS I amended the usage of the HTML `sizes` attribute.

The media can be ascertained from `gridTemplateColumns` and `gridGap` values, this change results in smaller images also being available in the srcset for use with sizes, which should be more performant.
parent b448a504
......@@ -297,7 +297,7 @@ export default function Fill() {
alt="Mountains"
src={mountains}
fill
sizes="100vw"
sizes="(min-width: 808px) 50vw, 100vw"
style={{
objectFit: 'cover', // cover, contain, none
}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment