// Auto-scrolling sample marquee + click-to-fullscreen lightbox. function SampleStrip() { const items = [...FIGURES, ...FIGURES]; const [lightbox, setLightbox] = React.useState(null); React.useEffect(() => { if (!lightbox) return; const onKey = (e) => { if (e.key === 'Escape') setLightbox(null); }; window.addEventListener('keydown', onKey); // Prevent background scroll while lightbox is open const prev = document.body.style.overflow; document.body.style.overflow = 'hidden'; return () => { window.removeEventListener('keydown', onKey); document.body.style.overflow = prev; }; }, [lightbox]); return ( <>
── Example outputs {FIGURES.length} →
{items.map((f, i) => (
setLightbox(f)} style={{cursor: 'pointer'}}> {f.tag} {f.name}
{f.name} {f.meta}
))}
{lightbox && (
setLightbox(null)}>
e.stopPropagation()}>
FIG_{lightbox.tag} · {lightbox.name} setLightbox(null)}>CLOSE ×
{lightbox.name}
{lightbox.meta} QWEN-EDIT-2511 · ACTION LORA
)} ); } Object.assign(window, { SampleStrip });