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
8 changes: 5 additions & 3 deletions docs/src/components/home/Media.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ interface Props {
// Videos stay on their poster until the presentation's script loads and
// plays them (src/lib/utils/autoplay.ts, CloserLook.astro).
// `sizes` is the width the media can take inside its frame, inset and all,
// not the frame's: the widest variant then fits a Retina screen at the
// widest layout, and nothing larger is decoded as the page scrolls.
// not the frame's, so a 2x screen picks the variant that fits the media
// rather than its frame. 1600 covers the widest gallery media (808px) and
// 1440 the stage media (720px); nothing larger is decoded as the page
// scrolls.
const { media, sizes, class: className } = Astro.props;
---

Expand All @@ -22,7 +24,7 @@ const { media, sizes, class: className } = Astro.props;
<Image
src={media.src}
alt={media.alt}
widths={[360, 640, 800, 1200, 1440]}
widths={[360, 640, 800, 1200, 1440, 1600]}
sizes={sizes}
class={className}
/>
Expand Down
2 changes: 1 addition & 1 deletion docs/tests/build-output.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ test("homepage scroll-linked effects stay off the main thread", () => {
assert.deepEqual(keyframes("reveal"), ["translate"]);
assert.deepEqual(keyframes("light-up"), ["translate"]);
assert.deepEqual(keyframes("light-up-text"), ["translate"]);
for (const name of ["settle", "recede", "draw", "slide-in"]) {
for (const name of ["settle", "recede", "draw", "draw-down", "slide-in"]) {
for (const property of keyframes(name)) {
assert.match(
property,
Expand Down
Loading