File tree Expand file tree Collapse file tree
assets/js/dashboard/stats/graph Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -331,7 +331,10 @@ export const MainGraph = ({
331331 ref = { svgRef }
332332 viewBox = { `0 0 ${ width } ${ height } ` }
333333 className = { classNames ( 'w-full h-auto' , {
334- [ 'cursor-pointer' ] : showZoomToPeriod
334+ [ 'cursor-pointer' ] :
335+ showZoomToPeriod &&
336+ selectedIndex !== null &&
337+ remappedData [ selectedIndex ]
335338 } ) }
336339 />
337340 { selectedIndex !== null && remappedData [ selectedIndex ] && (
@@ -381,7 +384,8 @@ const GraphTooltip = ({
381384 top : y
382385 } }
383386 className = { classNames (
384- 'absolute z-200 bg-gray-800 py-3 px-4 rounded-md z-[100] min-w-[180px] pointer-events-none shadow shadow-gray-200 dark:shadow-gray-850' ,
387+ 'absolute bg-gray-800 py-3 px-4 rounded-md z-[100] min-w-[180px] pointer-events-none shadow shadow-gray-200 dark:shadow-gray-850' ,
388+ '-translate-y-full' ,
385389 {
386390 'translate-x-2' : ! isLeftOfCursor ,
387391 '-translate-x-full' : isLeftOfCursor
You can’t perform that action at this time.
0 commit comments