diff --git a/frontend/src/Live.tsx b/frontend/src/Live.tsx index 10305d0..93bc545 100644 --- a/frontend/src/Live.tsx +++ b/frontend/src/Live.tsx @@ -7,14 +7,14 @@ const GIVE_UP = 20000; type State = "starting" | "slow" | "ready" | "failed"; -/** One story live from the gallery, themed with the site, no frame around it. */ +/** One story live from the gallery, in the site's mode. */ export function Live({ page, story, title }: { page: string; story: string; title: string }) { const theme = useMode(); const frame = useRef(null); const [state, setState] = useState("starting"); const [full, setFull] = useState(false); const [run, setRun] = useState(0); - // Each new frame opens in the mode the site has then. + // Each new frame opens in the current mode. const start = useMemo(() => mode(), [run]); const src = (t: string) => `/gallery/?page=${page}&story=${story}&theme=${t}`; diff --git a/frontend/src/Native.tsx b/frontend/src/Native.tsx index 28e00a2..d6c37ac 100644 --- a/frontend/src/Native.tsx +++ b/frontend/src/Native.tsx @@ -7,7 +7,7 @@ const windows: Record = shots.windows; /** Whether the site shows this story as a native capture. */ export const isCaptured = (page: string, story: string) => captured.has(`${page}/${story}`); -/** Captures are at twice the pixels, drawn at their size, in the site's mode. */ +/** A capture at twice its pixels, in the site's mode. */ function Shot({ name, alt }: { name: string; alt: string }) { const theme = useMode(); return {alt};