Unverified Commit 6cc8dc38 authored by Alex Castle's avatar Alex Castle Committed by GitHub

Change sizes docs to use max-width in media query (#40290)

This PR updates the next/image and `next/future/image` sizes docs to use `max-width` in the `sizes` media query, for code style and consistency reasons.
parent 815abc5e
...@@ -248,9 +248,9 @@ const Example = () => ( ...@@ -248,9 +248,9 @@ const Example = () => (
<Image <Image
src="/example.png" src="/example.png"
layout="fill" layout="fill"
sizes="(min-width: 1200px) 33vw, sizes="(max-width: 768px) 100vw,
(min-width: 768px) 50vw, (max-width: 1200px) 50vw,
100vw" 33vw"
/> />
</div> </div>
) )
......
...@@ -147,9 +147,9 @@ const Example = () => ( ...@@ -147,9 +147,9 @@ const Example = () => (
<Image <Image
src="/example.png" src="/example.png"
layout="fill" layout="fill"
sizes="(min-width: 1200px) 33vw, sizes="(max-width: 768px) 100vw,
(min-width: 768px) 50vw, (max-width: 1200px) 50vw,
100vw" 33vw"
/> />
</div> </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