T45a Site · Stack: comments one short line
This commit is contained in:
2 files changed
+3
-3
No files matched your search
@@ -7,7 +7,7 @@ const windows: Record<string, string[]> = 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 <img className="shot" srcSet={`/shots/${name}-${theme}.jpg 2x`} alt={alt} loading="lazy" />;
|
||||
|
||||
Reference in new issue
Block a user