Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion apps/svelte.dev/src/routes/_home/Community.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<figure>
<enhanced:img
src="./summit.png"
src="./summit.png?w=800;1200;2000;2800;4400"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd forgotten too, but the docs say to use sizes instead: https://kit.svelte.dev/docs/images#sveltejs-enhanced-img-srcset-and-sizes

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine to just specify the width if it basically fills the screen (which it does up until the point that it wouldn't make any difference) — IIUC sizes is necessary if you know it'll be x pixels wide when the screen is y pixels wide, but it's a lot more finicky and brittle

alt="Photos by Marcel Cutts from the 2022 Svelte Summit in Stockholm"
/>
<figcaption>Photos by <a href="https://x.com/marcelcutts">Marcel Cutts</a></figcaption>
Expand Down
Binary file modified apps/svelte.dev/src/routes/_home/summit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading