diff --git a/public/app/features/datasources/components/picker/DataSourceDropdown.tsx b/public/app/features/datasources/components/picker/DataSourceDropdown.tsx index c63b3deba27..f6b96e79f39 100644 --- a/public/app/features/datasources/components/picker/DataSourceDropdown.tsx +++ b/public/app/features/datasources/components/picker/DataSourceDropdown.tsx @@ -8,7 +8,7 @@ import { DataSourceInstanceSettings, GrafanaTheme2 } from '@grafana/data'; import { selectors } from '@grafana/e2e-selectors'; import { reportInteraction } from '@grafana/runtime'; import { DataSourceJsonData } from '@grafana/schema'; -import { Button, Icon, Input, ModalsController, Portal, useStyles2 } from '@grafana/ui'; +import { Button, CustomScrollbar, Icon, Input, ModalsController, Portal, useStyles2 } from '@grafana/ui'; import config from 'app/core/config'; import { useKeyNavigationListener } from 'app/features/search/hooks/useSearchKeyboardSelection'; @@ -212,19 +212,21 @@ const PickerContent = React.forwardRef((prop return (
- matchDataSourceWithSearch(ds, filterTerm)} - onClickEmptyStateCTA={() => - reportInteraction(INTERACTION_EVENT_NAME, { - item: INTERACTION_ITEM.CONFIG_NEW_DS_EMPTY_STATE, - }) - } - > + + matchDataSourceWithSearch(ds, filterTerm)} + onClickEmptyStateCTA={() => + reportInteraction(INTERACTION_EVENT_NAME, { + item: INTERACTION_ITEM.CONFIG_NEW_DS_EMPTY_STATE, + }) + } + > +
{({ showModal, hideModal }) => ( @@ -267,7 +269,6 @@ PickerContent.displayName = 'PickerContent'; function getStylesPickerContent(theme: GrafanaTheme2) { return { container: css` - overflow-y: auto; display: flex; flex-direction: column; max-width: 480px; @@ -279,7 +280,6 @@ function getStylesPickerContent(theme: GrafanaTheme2) { `, dataSourceList: css` flex: 1; - overflow: scroll; `, footer: css` flex: 0;