Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Responsive fixes: headline room, a way down from Home's first screen, fuller menus and panels

Adarshaa4fb2dde3a7
diff --git a/src/components/home-view.tsx b/src/components/home-view.tsx
index 656c66b3..e9685b2a 100644
--- a/src/components/home-view.tsx
+++ b/src/components/home-view.tsx
@@ -284,7 +284,8 @@ export function HomeView({
? "Frontier paid models through your own API keys."
: "Frontier cloud models or fully open-source workflows — same studio, your choice."}
</p>
- <div className="relative mt-6 w-full max-w-[720px] rounded-[20px] border bg-background p-2.5 text-left shadow-soft transition focus-within:border-primary focus-within:ring-4 focus-within:ring-brand-faint sm:rounded-composer">
+ {/* id: where the first screen's "Start creating" leads (ScrollCue, home-islands.tsx: START_CREATING_ID). */}
+ <div id="start-creating" className="relative mt-6 w-full max-w-[720px] rounded-[20px] border bg-background p-2.5 text-left shadow-soft transition focus-within:border-primary focus-within:ring-4 focus-within:ring-brand-faint sm:rounded-composer">
{flash > 0 && <span key={flash} aria-hidden className="pointer-events-none absolute -inset-px animate-ring-flash rounded-[inherit] ring-4 ring-primary/30 motion-reduce:hidden" />}
<textarea
value={prompt}
diff --git a/src/components/home/home-bento-classes.ts b/src/components/home/home-bento-classes.ts
index 60254393..49429d8d 100644
--- a/src/components/home/home-bento-classes.ts
+++ b/src/components/home/home-bento-classes.ts
@@ -3,6 +3,6 @@
* stylesheet in this app is (next.config.ts runs each .css file through Tailwind as plain CSS), so the prefix keeps its
* names to itself.
*/
-const NAMES = ["accent","aside","audio","badge","bento","big","board","box","canvas","caret","clip","copy","corner","cta","edges","end","figures","fill","filmMark","foot","frame","genjutsu","grid","h1","head","image","kenburns","l2b","line1","line2","live","meta","node","nodeLabel","numbers","numbersFoot","numbersLine","out","pic","pill","progress","shade","step","three","tile","title","tsx","typed","video","voice","voiceBar","voiceChip","voiceCopy","voiceDot","voiceGo","voiceLink","voiceNear","voicePics","voicePlay","voiceQuiet","voiceSwitch","voiceUi","wipe","wipeAfter","wipeBefore"] as const;
+const NAMES = ["accent","aside","asideWords","audio","badge","bento","big","board","box","canvas","caret","clip","copy","corner","cta","edges","end","figures","fill","filmMark","foot","frame","genjutsu","grid","h1","head","image","kenburns","l2b","line1","line2","live","meta","node","nodeLabel","numbers","numbersFoot","numbersLine","out","pic","pill","progress","shade","step","three","tile","title","tsx","typed","video","voice","voiceBar","voiceChip","voiceCopy","voiceDot","voiceGo","voiceLink","voiceNear","voicePics","voicePlay","voiceQuiet","voiceSwitch","voiceUi","wipe","wipeAfter","wipeBefore"] as const;
export const s = Object.fromEntries(NAMES.map((n) => [n, `hb-${n.replace(/[A-Z]/g, (c) => "-" + c.toLowerCase())}`])) as Record<(typeof NAMES)[number], string>;
diff --git a/src/components/home/home-bento.css b/src/components/home/home-bento.css
index c9e5b5d0..2beae2ac 100644
--- a/src/components/home/home-bento.css
+++ b/src/components/home/home-bento.css
@@ -56,9 +56,17 @@
* for that, 1.33 being the headline's height in --l1 (both lines: see --bento-head, with --l2 at 0.358 of it).
*/
--grid-min: 450px;
- --l1-room: calc((var(--content-h) - var(--grid-min) - 16px - var(--head-top) - var(--head-gap)) / 1.33);
+ /* 3.25rem: the foot row under the grid (its note, "Start creating" and the pause button), the same room the grid's height leaves it. */
+ --l1-room: calc((var(--content-h) - var(--grid-min) - 3.25rem - var(--head-top) - var(--head-gap)) / 1.33);
+ /*
+ * --l1-fit: the most "Make anything:" can be and still leave the note its own column on the right. The headline's
+ * width (PageShell's: the screen less 2 x 24 px, at most 1152 px), less 276 px for the note and its gap, over 5.2:
+ * the words measure 4.83 of their size in Instrument Serif, and the extra 8 % keeps them clear of the note where a
+ * browser sets them a little wider (zoom, text scaling, a different build of the face).
+ */
+ --l1-fit: calc((min(100vw - 48px, 1152px) - 276px) / 5.2);
/* Never below 96px: in a short window the grid runs on below the fold instead of the headline shrinking away. */
- --l1: max(96px, min(calc(150px + (100vw - 1024px) * 0.1563), var(--l1-room)));
+ --l1: max(96px, min(calc(150px + (100vw - 1024px) * 0.1563), var(--l1-room), var(--l1-fit)));
--l2: calc(var(--l1) * 0.358);
/* The headline's height (line 1's box, the gap under its descenders, line 2's box), which the grid takes off the screen's. */
--bento-head: calc(var(--l1) * 0.986 + var(--l2) * 0.96 + var(--head-gap));
@@ -66,7 +74,7 @@
}
@media (min-width: 1280px) {
.hb-bento {
- --l1: max(96px, min(190px, var(--l1-room)));
+ --l1: max(96px, min(190px, var(--l1-room), var(--l1-fit)));
}
}
@@ -212,14 +220,21 @@
right: 0;
/* Down to line 1's baseline (0.768 of its size under the top of its line), and the note's own descent. */
height: calc(var(--l1) * 0.768 + 5px);
- width: min(300px, calc(100% - var(--l1) * 4.86 - 32px));
+ /* The room right of the words with the same 8 % to spare (see --l1-fit); its words show only where that is 180 px or more. */
+ width: min(300px, calc(100% - var(--l1) * 5.2 - 40px));
max-width: none;
+ container-type: inline-size;
margin: 0;
display: flex;
flex-direction: column;
justify-content: flex-end;
font-size: 14px;
}
+ @container (max-width: 179.98px) {
+ .hb-aside-words {
+ display: none;
+ }
+ }
}
/* ---------------------------------------------------------------- grid */
@@ -1412,6 +1427,105 @@
font-size: 12px;
color: var(--muted-foreground);
}
+/* From md: the note on the left, the way down in the middle, the pause button on the right. */
+@media (min-width: 768px) {
+ .hb-foot {
+ display: grid;
+ grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
+ }
+}
+
+/*
+ * "Start creating": the way down to the composer (ScrollCue, home-islands.tsx). In the foot row from md; its floating
+ * copy rises in over the bottom of the screen while that row is under the fold, and goes once the page scrolls.
+ */
+.hb-cue {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ height: 36px;
+ padding: 0 16px;
+ border-radius: 999px;
+ border: 1px solid var(--border-strong, var(--border));
+ background: color-mix(in oklch, var(--background) 82%, transparent);
+ color: var(--foreground);
+ font-size: 13px;
+ font-weight: 500;
+ white-space: nowrap;
+ cursor: pointer;
+ transition:
+ background-color 0.15s ease,
+ border-color 0.15s ease;
+}
+.hb-cue:hover {
+ background: var(--background);
+ border-color: color-mix(in oklch, var(--foreground) 35%, transparent);
+}
+.hb-cue:focus-visible {
+ outline: 2px solid var(--ring);
+ outline-offset: 2px;
+}
+.hb-cue-float {
+ position: fixed;
+ z-index: 30;
+ left: 50%;
+ bottom: calc(var(--chrome-bottom) + 16px);
+ height: 40px;
+ /* Solid and in the page's text colour, so it reads over any picture under it. */
+ border-color: transparent;
+ background: var(--foreground);
+ color: var(--background);
+ box-shadow: 0 8px 28px rgb(0 0 0 / 0.35);
+ opacity: 0;
+ visibility: hidden;
+ pointer-events: none;
+ transform: translate(-50%, 12px);
+ transition:
+ opacity 0.3s ease,
+ transform 0.3s var(--ease-enter, cubic-bezier(0.08, 0.82, 0.17, 1)),
+ visibility 0s linear 0.3s;
+}
+.hb-cue-float:hover {
+ border-color: transparent;
+ background: color-mix(in oklch, var(--foreground) 88%, var(--background));
+}
+.hb-cue-float[data-shown] {
+ opacity: 1;
+ visibility: visible;
+ pointer-events: auto;
+ transform: translate(-50%, 0);
+ transition:
+ opacity 0.3s ease,
+ transform 0.3s var(--ease-enter, cubic-bezier(0.08, 0.82, 0.17, 1)),
+ visibility 0s;
+}
+/* The arrow dips three times as the floating copy arrives, then rests. */
+.hb-cue-float[data-shown] .hb-cue-arrow {
+ animation: hb-cue-dip 1.4s ease-in-out 0.3s 3;
+}
+@keyframes hb-cue-dip {
+ 0%,
+ 100% {
+ transform: none;
+ }
+ 50% {
+ transform: translateY(3px);
+ }
+}
+@media (prefers-reduced-motion: reduce) {
+ .hb-cue-float,
+ .hb-cue-float[data-shown] {
+ transition: none;
+ }
+ .hb-cue-float[data-shown] .hb-cue-arrow {
+ animation: none;
+ }
+}
+@media (pointer: coarse) {
+ .hb-cue-float {
+ height: 44px;
+ }
+}
/* Reduced motion: whatever data-play says, nothing moves by itself, and a hover doesn't lift a tile. */
@media (prefers-reduced-motion: reduce) {
diff --git a/src/components/home/home-bento.tsx b/src/components/home/home-bento.tsx
index fdeda396..ea097e4c 100644
--- a/src/components/home/home-bento.tsx
+++ b/src/components/home/home-bento.tsx
@@ -2,7 +2,7 @@ import { ArrowRight, ArrowUpRight, Play, Sparkles, Video } from "lucide-react";
import { preload } from "react-dom";
import { BentoClip, BentoMotion, BentoReel, LiveTyping, NumbersLink } from "@/components/home/bento-islands";
import { BentoVoice } from "@/components/home/bento-voice";
-import { PausePreviews } from "@/components/home/home-islands";
+import { PausePreviews, ScrollCue } from "@/components/home/home-islands";
import { IntentLink } from "@/components/intent-link";
import { CountUp } from "@/components/ui/count-up";
import type { BentoPicture, BentoTile, HomeBento as Bento } from "@/lib/home-bento";
@@ -206,7 +206,9 @@ export function HomeBento({ bento }: { bento: Bento }) {
<span aria-hidden className={s.end} />
</span>
</h1>
- <p className={s.aside}>Film, live edits, swaps, stills, sound, 3D and whole pipelines. Each tile opens the studio that makes it.</p>
+ <p className={s.aside}>
+ <span className={s.asideWords}>Film, live edits, swaps, stills, sound, 3D and whole pipelines. Each tile opens the studio that makes it.</span>
+ </p>
</div>
<div className={s.grid}>
@@ -272,12 +274,13 @@ export function HomeBento({ bento }: { bento: Bento }) {
</Tile>
</div>
- <div className={s.foot}>
+ <div id="home-bento-foot" className={s.foot}>
<p className="min-w-0">
- <span className="sm:hidden">Rendered locally on ComfyUI, on one RTX 5090.</span>
- <span className="max-sm:hidden">Every preview on this page was rendered locally on ComfyUI, on one RTX 5090.</span>
+ <span className="lg:hidden">Rendered locally on ComfyUI, on one RTX 5090.</span>
+ <span className="max-lg:hidden">Every preview on this page was rendered locally on ComfyUI, on one RTX 5090.</span>
</p>
- <PausePreviews className="[@media(pointer:coarse)]:min-h-11 [@media(pointer:coarse)]:min-w-11" />
+ <ScrollCue footId="home-bento-foot" />
+ <PausePreviews className="justify-self-end [@media(pointer:coarse)]:min-h-11 [@media(pointer:coarse)]:min-w-11" />
</div>
<BentoMotion target="home-bento" />
</section>
diff --git a/src/components/home/home-islands.tsx b/src/components/home/home-islands.tsx
index d3b4d59b..1deb9e9d 100644
--- a/src/components/home/home-islands.tsx
+++ b/src/components/home/home-islands.tsx
@@ -1,6 +1,6 @@
"use client";
-import { ArrowRight, Check, Copy, Pause, Play } from "lucide-react";
+import { ArrowDown, ArrowRight, Check, Copy, Pause, Play } from "lucide-react";
import { useEffect, useRef, useState } from "react";
import { CardPending, IntentLink } from "@/components/intent-link";
import { useFadeEdges } from "@/components/use-fade-edges";
@@ -314,3 +314,77 @@ export function StartSteps() {
</ol>
);
}
+
+/** Where the cue leads: the composer under the first screen (home-view.tsx). */
+export const START_CREATING_ID = "start-creating";
+
+/**
+ * The first screen's way down to the composer. From md it is a button in the middle of the screen's foot row. While
+ * that row is under the fold (a phone, a short laptop screen) a copy of it floats over the bottom of the screen, above
+ * the phone's tabs, until the page is scrolled. A tap scrolls to the composer; with a mouse or trackpad the prompt box
+ * also takes the cursor (a phone keeps its keyboard closed).
+ */
+export function ScrollCue({ footId }: { footId: string }) {
+ const [float, setFloat] = useState(false);
+ useEffect(() => {
+ const foot = document.getElementById(footId);
+ if (!foot) return;
+ let below = false;
+ let scrolled = window.scrollY > 120;
+ let ready = false;
+ const update = () => setFloat(ready && below && !scrolled);
+ // Floats until the whole foot row is on the screen: a sliver of it at the bottom edge is easy to miss.
+ const io = new IntersectionObserver(
+ ([e]) => {
+ below = e.intersectionRatio < 0.98 && e.boundingClientRect.top > 0;
+ update();
+ },
+ { threshold: [0, 0.98] },
+ );
+ io.observe(foot);
+ const onScroll = () => {
+ if (window.scrollY <= 120) return;
+ scrolled = true;
+ update();
+ window.removeEventListener("scroll", onScroll);
+ };
+ window.addEventListener("scroll", onScroll, { passive: true });
+ // After the headline has risen into place, so the two don't move at once.
+ const t = window.setTimeout(() => {
+ ready = true;
+ update();
+ }, 1200);
+ return () => {
+ io.disconnect();
+ window.removeEventListener("scroll", onScroll);
+ window.clearTimeout(t);
+ };
+ }, [footId]);
+
+ const go = () => {
+ const box = document.getElementById(START_CREATING_ID);
+ if (!box) return;
+ const still = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
+ box.scrollIntoView({ behavior: still ? "auto" : "smooth", block: "center" });
+ if (window.matchMedia("(pointer: fine)").matches) box.querySelector("textarea")?.focus({ preventScroll: true });
+ setFloat(false);
+ };
+
+ const label = (
+ <>
+ Start creating
+ <ArrowDown aria-hidden className="hb-cue-arrow size-3.5" />
+ </>
+ );
+ return (
+ <>
+ <button type="button" onClick={go} className="hb-cue max-md:hidden">
+ {label}
+ </button>
+ {/* The floating copy repeats the button above for pointers only: keyboards and screen readers reach that one. */}
+ <button type="button" onClick={go} aria-hidden tabIndex={-1} data-shown={float || undefined} className="hb-cue hb-cue-float">
+ {label}
+ </button>
+ </>
+ );
+}
diff --git a/src/components/live/live-demo.tsx b/src/components/live/live-demo.tsx
index 25717e65..c9775409 100644
--- a/src/components/live/live-demo.tsx
+++ b/src/components/live/live-demo.tsx
@@ -12,6 +12,7 @@ import {
frameFile,
frameOrder,
LIVE_DEMO,
+ LIVE_DEMO_POSTER,
LIVE_DEMO_V,
pillText,
SETTLE_FADE_MS,
@@ -25,6 +26,11 @@ import {
} from "@/lib/live/demo";
import { cn } from "@/lib/utils";
+/** The poster's files as srcsets, and how wide it shows: a full card is up to 7 of 12 columns from lg; a compact one a tile. */
+const POSTER_AVIF = LIVE_DEMO_POSTER.avif.map((f) => `${f.src} ${f.w}w`).join(", ");
+const POSTER_WEBP = LIVE_DEMO_POSTER.webp.map((f) => `${f.src} ${f.w}w`).join(", ");
+const POSTER_SIZES = { full: "(min-width: 1024px) 680px, calc(100vw - 32px)", compact: "(min-width: 768px) 360px, calc(100vw - 32px)" };
+
/**
* A recorded live edit session, played back: one prompt that keeps growing. The words type themselves onto the end of
* the prompt in the dock, each live frame is drawn across the picture as it arrives, the full-quality picture settles
@@ -300,6 +306,20 @@ export function LiveDemo({ compact, className, onTypeAttempt }: { compact?: bool
return (
<div ref={box} className={cn("@container relative isolate overflow-hidden rounded-2xl bg-media text-white", className)} style={{ aspectRatio: compact ? ratio : undefined }} data-live-demo>
+ {/* The first picture, always there under the player: the card is never an empty box (LIVE_DEMO_POSTER). */}
+ <picture>
+ <source type="image/avif" srcSet={POSTER_AVIF} sizes={compact ? POSTER_SIZES.compact : POSTER_SIZES.full} />
+ <img
+ src={LIVE_DEMO_POSTER.webp[1].src}
+ srcSet={POSTER_WEBP}
+ sizes={compact ? POSTER_SIZES.compact : POSTER_SIZES.full}
+ alt=""
+ loading="lazy"
+ decoding="async"
+ draggable={false}
+ className="absolute inset-0 size-full object-cover"
+ />
+ </picture>
{demo && ends && v && showImages && (reduced ? (
<StillCompare before={src(ends.before)} after={src(ends.after)} changes={countChanges(demo)} />
) : (
diff --git a/src/components/nav/mega-panel.tsx b/src/components/nav/mega-panel.tsx
index 58fe3a05..db5d1fee 100644
--- a/src/components/nav/mega-panel.tsx
+++ b/src/components/nav/mega-panel.tsx
@@ -370,8 +370,15 @@ export function MegaColumns({ model, current, now, kind }: { model: MegaModel; c
);
};
+ // A menu with fewer than six columns (Fuobe FX has five) shares the whole width among them, so no empty strip is
+ // left on the right under the full-width header row.
+ const spans = families ? 6 : model.columns.reduce((n, c) => n + (c.span ?? 1), 0);
+ const fewer = spans > 0 && spans < 6;
return (
- <div className="grid grid-cols-3 gap-x-4 gap-y-6 lg:grid-cols-6 lg:gap-x-3">
+ <div
+ className={cn("grid grid-cols-3 gap-x-4 gap-y-6 lg:gap-x-3", fewer ? "lg:grid-cols-(--mega-cols)" : "lg:grid-cols-6")}
+ style={fewer ? ({ "--mega-cols": `repeat(${spans}, minmax(0, 1fr))` } as React.CSSProperties) : undefined}
+ >
{families
? model.families!.map((f) => (
<Fragment key={f.id}>
diff --git a/src/components/studio/viewer.tsx b/src/components/studio/viewer.tsx
index 2bbd2749..9a15dc6f 100644
--- a/src/components/studio/viewer.tsx
+++ b/src/components/studio/viewer.tsx
@@ -152,8 +152,12 @@ function LayerList({ g, index, all, onPick, onAll }: { g: Generation; index: num
}
/** The two-column action grid: a long label wraps to a second line, and the buttons of a row share its height. */
+/**
+ * Two columns of actions, each icon then its name from the left edge, so the icons line up down each column whether a
+ * name takes one line or (rarely, in a narrow panel) two. Move to Trash, across both columns, stays centred.
+ */
const ACTION_GRID =
- "@container/actions grid grid-cols-2 gap-2 [&>*]:h-auto [&>*]:min-h-7 [&>*]:py-1 [&>*]:whitespace-normal [&_[data-label]]:line-clamp-2 [&_[data-label]]:whitespace-normal [&_[data-label]]:text-center [&_[data-label]]:leading-tight";
+ "@container/actions grid grid-cols-2 gap-2 [&>*]:h-auto [&>*]:min-h-8 [&>*]:py-1 [&>*]:justify-start [&>*]:whitespace-normal [&>.col-span-2]:justify-center [&_[data-label]]:line-clamp-2 [&_[data-label]]:whitespace-normal [&_[data-label]]:text-left [&_[data-label]]:leading-tight";
export function Viewer({
generation: g,
@@ -438,7 +442,8 @@ export function Viewer({
</div>
</div>
- <aside className="hidden w-80 shrink-0 flex-col border-l bg-card md:flex">
+ {/* Wider from xl, where the picture can spare it, so every action's name fits on one line. */}
+ <aside className="hidden w-80 shrink-0 flex-col border-l bg-card md:flex xl:w-[22rem]">
<div className="flex items-center justify-between px-4 pt-3">
<span className="inline-flex items-center gap-1 text-[12px] text-muted-foreground">
<Info className="size-3.5" /> Details
@@ -447,7 +452,8 @@ export function Viewer({
<X className="size-4" />
</button>
</div>
- <div className="flex-1 space-y-4 overflow-y-auto px-4 pb-4">
+ {/* The details keep at least a third of the panel; the actions under them scroll where a short screen can't show them all. */}
+ <div className="min-h-[33%] flex-1 space-y-4 overflow-y-auto px-4 pb-4">
<Details g={g} index={index} />
{/* Where this result can go next, with it attached (a layer is a part: it goes on from the Layers editor). */}
{!layered && <NextSteps g={g} index={index} variant="list" max={5} onNavigate={onClose} />}
@@ -464,7 +470,7 @@ export function Viewer({
/>
)}
</div>
- <div className={cn(ACTION_GRID, "border-t p-3")}>
+ <div className={cn(ACTION_GRID, "min-h-0 shrink overflow-y-auto overscroll-contain border-t p-3")}>
{primary && actionButton(primary, { variant: "default" })}
{bar.map((a) => actionButton(a))}
{menu.filter((a) => !a.destructive && a.id !== "compare").map((a) => actionButton(a))}
diff --git a/src/lib/live/demo.ts b/src/lib/live/demo.ts
index d2c736ee..b0b175df 100644
--- a/src/lib/live/demo.ts
+++ b/src/lib/live/demo.ts
@@ -39,6 +39,24 @@ export const ZOOM_PAD = 0.12;
export const MID_W = 768;
export const SMALL_W = 512;
+/**
+ * The session's first picture (frame s0 of demo.json), always in the page under the player: the card shows it before
+ * the session file, the AVIF check and the observer have run, and keeps showing it where they never do (no script, a
+ * slow connection, a card scrolled past before it played). A test keeps it in step with demo.json.
+ */
+export const LIVE_DEMO_POSTER = {
+ avif: [
+ { src: "/previews/live-edit/512/step-00.avif?v=526c3183", w: SMALL_W },
+ { src: "/previews/live-edit/768/step-00.avif?v=df6f15aa", w: MID_W },
+ { src: "/previews/live-edit/1280/step-00.avif?v=c328e26e", w: 1280 },
+ ],
+ webp: [
+ { src: "/previews/live-edit/512/step-00.webp?v=1523fa79", w: SMALL_W },
+ { src: "/previews/live-edit/768/step-00.webp?v=60795779", w: MID_W },
+ { src: "/previews/live-edit/1280/step-00.webp?v=791c2996", w: 1280 },
+ ],
+} as const;
+
/**
* One picture of the session, in up to three sizes. Every file may end in ?v= and the first 8 hex digits of its
* SHA-256, so a new file is never served from cache.
diff --git a/tests/live-demo.test.ts b/tests/live-demo.test.ts
index 6073d2a8..26e02627 100644
--- a/tests/live-demo.test.ts
+++ b/tests/live-demo.test.ts
@@ -20,6 +20,7 @@ import {
frameOrder,
framePath,
LIVE_DEMO,
+ LIVE_DEMO_POSTER,
LIVE_DEMO_V,
LOOP_MAX_MS,
loopMs,
@@ -98,6 +99,12 @@ describe("the shipped demo", () => {
for (const id of Object.keys(shipped.frames)) expect(id).not.toMatch(/^\d+$/);
});
+ it("keeps its poster in step with the session's first picture", () => {
+ const f = shipped.frames[demoEnds(shipped).before];
+ expect(LIVE_DEMO_POSTER.avif.map((x) => x.src)).toEqual([f.small, f.mid, f.src]);
+ expect(LIVE_DEMO_POSTER.webp.map((x) => x.src)).toEqual([f.webp, f.webpMid, f.webpSrc]);
+ });
+
it("is fetched at its content version, and so is every frame", () => {
const sha8 = (b: Buffer | string) => createHash("sha256").update(b).digest("hex").slice(0, 8);
expect(sha8(shippedText)).toBe(LIVE_DEMO_V);