diff --git a/frontend/src/component/insights/InsightsCharts.tsx b/frontend/src/component/insights/InsightsCharts.tsx index a491a2aec3..1a8e754a25 100644 --- a/frontend/src/component/insights/InsightsCharts.tsx +++ b/frontend/src/component/insights/InsightsCharts.tsx @@ -95,12 +95,26 @@ const StyledSection = styled('section')(({ theme }) => ({ gap: theme.spacing(2), })); +const SectionTitleRow = styled('div')(({ theme }) => ({ + position: 'sticky', + top: 0, + zIndex: theme.zIndex.sticky, + padding: theme.spacing(2, 0), + background: theme.palette.background.application, + transition: 'padding 0.3s ease', + display: 'flex', + alignItems: 'space-between', + flexFlow: 'row wrap', +})); + const Section: FC> = ({ title, children, }) => ( -

{title}

+ +

{title}

+
{children}
);