diff --git a/src/app/components/Examples.tsx b/src/app/components/Examples.tsx index 50cece8..8d9644b 100644 --- a/src/app/components/Examples.tsx +++ b/src/app/components/Examples.tsx @@ -26,18 +26,20 @@ export default function Examples(props: { dict: Record; lang: st {examples.map((item: { icon: string | undefined; url: string }, index: number) => { return (
-
+
{ + document.body.style.overflow = "hidden"; + setPreviewInfo({ + preview: true, + url: item.url, + }); + }} + >
{ - document.body.style.overflow = "hidden"; - setPreviewInfo({ - preview: true, - url: item.url, - }); - }} > {props.dict.clickToPlay}