Skip to content

Commit 3265a1a

Browse files
committed
Prettier
1 parent 60673c7 commit 3265a1a

2 files changed

Lines changed: 0 additions & 9 deletions

File tree

src/frontend/src/pages/GanttPage/GanttChart/GanttChartCollectionSection.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ const GanttChartCollectionSection = <E, T>({
7272
onHeightChange(el.getBoundingClientRect().height);
7373
});
7474
ro.observe(el);
75-
// Fire once immediately so the parent has a height before the first scroll
7675
onHeightChange(el.getBoundingClientRect().height);
7776
return () => ro.disconnect();
7877
}, [onHeightChange]);

src/frontend/src/pages/GanttPage/GanttChart/GanttChartComponents/GanttTaskBar/GanttTaskBarView.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,6 @@ const GanttTaskBarView = <T,>({
6565
highlightSubtaskComparator={highlightSubtaskComparator}
6666
highlightTaskComparator={highlightTaskComparator}
6767
/>
68-
69-
{/*
70-
The grid trick: animate grid-template-rows from 0fr to 1fr.
71-
The inner div needs to be a single grid child — its natural height
72-
determines the expanded size, so no explicit height is ever needed.
73-
This never triggers layout reflow unlike height/max-height transitions.
74-
*/}
7568
<Box
7669
sx={{
7770
display: 'grid',
@@ -80,7 +73,6 @@ const GanttTaskBarView = <T,>({
8073
overflow: 'hidden'
8174
}}
8275
>
83-
{/* This inner div must have no min-height so it can collapse to 0 */}
8476
<Box sx={{ minHeight: 0 }}>
8577
{task.children.map((child) => (
8678
<GanttTaskBar

0 commit comments

Comments
 (0)