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 = () => (
<Image
src="/example.png"
layout="fill"
sizes="(min-width: 1200px) 33vw,
(min-width: 768px) 50vw,
100vw"
sizes="(max-width: 768px) 100vw,
(max-width: 1200px) 50vw,
33vw"
/>
</div>
)
......
......@@ -147,9 +147,9 @@ const Example = () => (
<Image
src="/example.png"
layout="fill"
sizes="(min-width: 1200px) 33vw,
(min-width: 768px) 50vw,
100vw"
sizes="(max-width: 768px) 100vw,
(max-width: 1200px) 50vw,
33vw"
/>
</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