From 49d5c8161d0a7d03c711ea0ebe3d792cb00ae2ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Wed, 30 Sep 2026 20:15:39 -0400 Subject: [PATCH] =?UTF-8?q?T45a=20Site=20=C2=B7=20Stack:=20comments=20one?= =?UTF-8?q?=20short=20line?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/Live.tsx | 4 ++-- frontend/src/Native.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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};