From 5b1d44281bd68149a80128c7b50b42865c15f52c Mon Sep 17 00:00:00 2001 From: CloudLun Date: Sat, 23 Mar 2024 06:13:33 -0400 Subject: [PATCH] revise the height of infobox --- components/infoPage/infoBox/InfoBox.tsx | 6 +++--- components/streetView/FloodingButton.tsx | 4 ++-- components/streetView/StreetView.tsx | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/infoPage/infoBox/InfoBox.tsx b/components/infoPage/infoBox/InfoBox.tsx index cf60b5f..c2a3bb0 100644 --- a/components/infoPage/infoBox/InfoBox.tsx +++ b/components/infoPage/infoBox/InfoBox.tsx @@ -44,13 +44,13 @@ const InfoBox = () => { return ( <> -
+
{/* floodgen */} - {/* { + { isDesktop ? : - } */} + } {/* */}
diff --git a/components/streetView/FloodingButton.tsx b/components/streetView/FloodingButton.tsx index a58b649..dff46e5 100644 --- a/components/streetView/FloodingButton.tsx +++ b/components/streetView/FloodingButton.tsx @@ -14,13 +14,13 @@ type Props = { const FloodingButton = ({ clicked, hovered, title, src, clickHandler, mouseEnterHandler, mouseLeaveHandler }: Props) => { - const isDesktop = useMediaQuery({ query: "(min-width: 1024px)" }) + const isTablet = useMediaQuery({ query: "(min-width: 768px)" }) return (
{/* {title} */} {title} - {isDesktop &&

{title}

} + {isTablet &&

{title}

}
) } diff --git a/components/streetView/StreetView.tsx b/components/streetView/StreetView.tsx index 1ef4493..a8b5457 100644 --- a/components/streetView/StreetView.tsx +++ b/components/streetView/StreetView.tsx @@ -135,7 +135,7 @@ const StreetView = () => {
-
+
{ floodingBtnsData.map((f, i) => floodingButtonClickHandler(f.title)} mouseEnterHandler={() => mouseEnterHandler(i)} mouseLeaveHandler={mouseLeaveHandler} />) }