Skip to content

Commit

Permalink
Change image sizes docs to use em instead of px (#40288)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
atcastle committed Sep 6, 2022
1 parent e8ff273 commit 815abc5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/api-reference/next/future/image.md
Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions docs/api-reference/next/image.md
Expand Up @@ -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>
Expand Down

0 comments on commit 815abc5

Please sign in to comment.