diff --git a/public/app/core/components/PageNew/SectionNav.tsx b/public/app/core/components/PageNew/SectionNav.tsx index 0569846c38c..0e34bdc1798 100644 --- a/public/app/core/components/PageNew/SectionNav.tsx +++ b/public/app/core/components/PageNew/SectionNav.tsx @@ -2,7 +2,7 @@ import { css } from '@emotion/css'; import React from 'react'; import { NavModel, GrafanaTheme2 } from '@grafana/data'; -import { useStyles2, Icon, VerticalTab, toIconName } from '@grafana/ui'; +import { useStyles2, Icon, VerticalTab, toIconName, CustomScrollbar } from '@grafana/ui'; export interface Props { model: NavModel; @@ -23,34 +23,36 @@ export function SectionNav(props: Props) { {main.img && {`logo} {props.model.main.text} -
- {directChildren.map((child, index) => { - return ( - !child.hideFromTabs && - !child.children && ( - - ) - ); - })} - {nestedItems.map((child) => ( - <> -
{child.text}
- {child.children!.map((child, index) => { - return ( - !child.hideFromTabs && - !child.children && ( - - ) - ); - })} - - ))} -
+ +
+ {directChildren.map((child, index) => { + return ( + !child.hideFromTabs && + !child.children && ( + + ) + ); + })} + {nestedItems.map((child) => ( + <> +
{child.text}
+ {child.children!.map((child, index) => { + return ( + !child.hideFromTabs && + !child.children && ( + + ) + ); + })} + + ))} +
+
); }