@@ -193,7 +193,7 @@ export default function Page() {
193193 } , [ streamedEvents ] ) ; // eslint-disable-line react-hooks/exhaustive-deps
194194
195195 const [ showUsefulLinks , setShowUsefulLinks ] = useState ( usefulLinksPreference ?? true ) ;
196- // Unmount the charts while the side panel animates ; 25 SVGs in a reflowing table tanks perf .
196+ // Hide (don't unmount) the charts during the panel animation ; 25 reflowing SVGs tank the resize .
197197 const [ isPanelAnimating , setIsPanelAnimating ] = useState ( false ) ;
198198 const animatingTimerRef = useRef < ReturnType < typeof setTimeout > | null > ( null ) ;
199199 const usefulLinksPanelRef = useRef < PanelHandle > ( null ) ;
@@ -436,24 +436,21 @@ function TaskRow({
436436 </ Suspense >
437437 </ TableCell >
438438 < TableCell to = { rowPath } actionClassName = "py-1.5" >
439- { /* Reserve the cell footprint while the chart unmounts during the panel animation. */ }
440439 < div style = { { width : ACTIVITY_CELL_WIDTH , height : ACTIVITY_CHART_HEIGHT } } >
441- { ! isPanelAnimating && (
442- < div className = "duration-100 animate-in fade-in" >
443- < Suspense fallback = { < TaskActivityBlankState /> } >
444- < TypedAwait resolve = { hourlyActivity } errorElement = { < FailedToLoadStats /> } >
445- { ( data ) => {
446- const taskData = data [ item . slug ] ;
447- return taskData && taskData . length > 0 ? (
448- < TaskActivityGraph activity = { taskData } />
449- ) : (
450- < TaskActivityBlankState />
451- ) ;
452- } }
453- </ TypedAwait >
454- </ Suspense >
455- </ div >
456- ) }
440+ < div hidden = { isPanelAnimating } >
441+ < Suspense fallback = { < TaskActivityBlankState /> } >
442+ < TypedAwait resolve = { hourlyActivity } errorElement = { < FailedToLoadStats /> } >
443+ { ( data ) => {
444+ const taskData = data [ item . slug ] ;
445+ return taskData && taskData . length > 0 ? (
446+ < TaskActivityGraph activity = { taskData } />
447+ ) : (
448+ < TaskActivityBlankState />
449+ ) ;
450+ } }
451+ </ TypedAwait >
452+ </ Suspense >
453+ </ div >
457454 </ div >
458455 </ TableCell >
459456 < TableCellMenu
0 commit comments