Fix missing last column header
This commit is contained in:
@@ -53,7 +53,7 @@ const GanttChart = ({
|
|||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box sx={{ width: weeksToRender * 280 }}>
|
<Box sx={{ width: (weeksToRender + 1) * 280 }}>
|
||||||
<Flex
|
<Flex
|
||||||
sx={{
|
sx={{
|
||||||
marginLeft: -20,
|
marginLeft: -20,
|
||||||
@@ -73,7 +73,7 @@ const GanttChart = ({
|
|||||||
Week {weekNumber}
|
Week {weekNumber}
|
||||||
</Box>
|
</Box>
|
||||||
)
|
)
|
||||||
}, weeksToRender)}
|
}, weeksToRender + 1)}
|
||||||
</Flex>
|
</Flex>
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
@@ -100,7 +100,7 @@ const GanttChart = ({
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}, daysToRender)}
|
}, daysToRender + 1)}
|
||||||
|
|
||||||
{times((index) => {
|
{times((index) => {
|
||||||
const weekNumber = index + 1
|
const weekNumber = index + 1
|
||||||
|
|||||||
Reference in New Issue
Block a user