Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add explanation link for DPI (Dots per inch)
  • Loading branch information
rammba committed Oct 9, 2024
commit 8dad69bb66e43213e19c2b0c6b1dfa02eb5f180e
2 changes: 1 addition & 1 deletion src/content/learn/passing-props-to-a-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ export function getImageUrl(person, size) {

</Sandpack>

You could also show a sharper image for high DPI screens by taking [`window.devicePixelRatio`](https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio) into account:
You could also show a sharper image for high [DPI](https://en.wikipedia.org/wiki/Dots_per_inch) screens by taking [`window.devicePixelRatio`](https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio) into account:

<Sandpack>

Expand Down