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 @@ -240,14 +240,14 @@ export const MainGraph = ({
240240 . bisector ( ( dataPoint : Point ) => dataPoint [ 0 ] )
241241 . center ( points , xPointer )
242242 const [ x , yValues ] = points [ closestIndexToPointer ]
243- if ( yValues . yMain ) {
243+ if ( yValues . yMain !== null ) {
244244 dot
245245 . attr ( 'transform' , `translate(${ x } ,${ yValues . yMain } )` )
246246 . attr ( 'display' , null )
247247 } else {
248248 dot . attr ( 'display' , 'none' )
249249 }
250- if ( yValues . yComparison ) {
250+ if ( yValues . yComparison !== null ) {
251251 comparisonDot
252252 . attr ( 'transform' , `translate(${ x } ,${ yValues . yComparison } )` )
253253 . attr ( 'display' , null )
@@ -355,15 +355,15 @@ const GraphTooltip = ({
355355 width : number
356356} ) => {
357357 const formatter = MetricFormatterShort [ metric ]
358- const isLeftOfCursor = width - x < 240
358+ const isLeftOfCursor = width - x < 200
359359 return (
360360 < div
361361 style = { {
362362 left : x ,
363363 top : y
364364 } }
365365 className = { classNames (
366- 'absolute z-200 bg-gray-800 py-3 px-4 rounded-md z-[100] min-w-[180px] pointer-events-none translate-y-2 shadow shadow-gray-200 dark:shadow-gray-850' ,
366+ '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' ,
367367 {
368368 'translate-x-2' : ! isLeftOfCursor ,
369369 '-translate-x-full' : isLeftOfCursor
You can’t perform that action at this time.
0 commit comments