From 6b42b67d967f1b1b1769b4139149c23af2ab5ab1 Mon Sep 17 00:00:00 2001 From: Junhyeong Park Date: Wed, 22 May 2024 13:55:48 +0900 Subject: [PATCH] feat: animation --- src/Pages/ResultPage.tsx | 39 +++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/src/Pages/ResultPage.tsx b/src/Pages/ResultPage.tsx index 875a64e..2439037 100644 --- a/src/Pages/ResultPage.tsx +++ b/src/Pages/ResultPage.tsx @@ -92,11 +92,13 @@ const ResultPage: React.FC = () => { const handleAlbumClick = (description: string, link: string) => { setOverlayDescription(description); setOverlayLink(link); + document.body.style.overflow = "hidden"; }; const handleOverlayClose = () => { setOverlayDescription(null); setOverlayLink(null); + document.body.style.overflow = "auto"; }; if (loading) { @@ -239,22 +241,27 @@ const ResultPage: React.FC = () => { > Music Description by MU-LLaMA - {overlayLink && ( - - YouTube - YouTube - - )} + + {overlayLink && ( + + YouTube + YouTube + + )} +