From 43ac7d2f48e82a24686ee0e3744102770aa33674 Mon Sep 17 00:00:00 2001 From: guofei Date: Wed, 23 Oct 2024 16:10:30 +0800 Subject: [PATCH] fix: change click area --- src/app/components/Examples.tsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) 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}