Unverified Commit 815abc5e authored by Alex Castle's avatar Alex Castle Committed by GitHub

Change image sizes docs to use em instead of px (#40288)

This PR is a minor change to the image docs (`next/image` and `next/future/image`). The example sizes media queries are switched from `em` to `px` for readability.
parent e8ff2738
......@@ -248,8 +248,8 @@ const Example = () => (
<Image
src="/example.png"
layout="fill"
sizes="(min-width: 75em) 33vw,
(min-width: 48em) 50vw,
sizes="(min-width: 1200px) 33vw,
(min-width: 768px) 50vw,
100vw"
/>
</div>
......
......@@ -147,8 +147,8 @@ const Example = () => (
<Image
src="/example.png"
layout="fill"
sizes="(min-width: 75em) 33vw,
(min-width: 48em) 50vw,
sizes="(min-width: 1200px) 33vw,
(min-width: 768px) 50vw,
100vw"
/>
</div>
......
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