From 17e399a2466d5fc23fe1a3d6a0e95d53073850d0 Mon Sep 17 00:00:00 2001 From: Shoaibdev7 Date: Tue, 23 Jul 2024 22:58:42 +0500 Subject: [PATCH] fix(graph-tooltip): small changes --- .../Graph/Cubes/Cube/components/Tooltip/index.tsx | 8 +++----- src/components/Universe/Overlay/index.tsx | 1 + 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/components/Universe/Graph/Cubes/Cube/components/Tooltip/index.tsx b/src/components/Universe/Graph/Cubes/Cube/components/Tooltip/index.tsx index a324b75da..0a0889192 100644 --- a/src/components/Universe/Graph/Cubes/Cube/components/Tooltip/index.tsx +++ b/src/components/Universe/Graph/Cubes/Cube/components/Tooltip/index.tsx @@ -12,20 +12,18 @@ const Wrapper = styled(Flex)(({ theme }) => ({ top: '65px', right: '55px', width: '300px', - pointerEvents: 'auto', + pointerEvents: 'none', background: colors.dashboardHeader, boxShadow: '0px 1px 6px rgba(0, 0, 0, 0.1)', color: colors.primaryText1, zIndex: 100, - overflow: 'hidden', + maxHeight: '400px', + overflowY: 'auto', transition: 'opacity 0.6s', padding: theme.spacing(2, 3), [theme.breakpoints.down('sm')]: { padding: theme.spacing(1, 1.5), }, - '&:hover': { - overflow: 'auto', - }, })) const Divider = styled(Flex)` diff --git a/src/components/Universe/Overlay/index.tsx b/src/components/Universe/Overlay/index.tsx index 126026f59..38deb9c83 100644 --- a/src/components/Universe/Overlay/index.tsx +++ b/src/components/Universe/Overlay/index.tsx @@ -32,6 +32,7 @@ const OverlayWrap = styled('div')(({ theme }) => ({ height: '100%', width: '100%', padding: '16px', + overflow: 'hidden', [theme.breakpoints.down('sm')]: { top: 50, },