diff --git a/public/app/features/dashboard/containers/DashboardSelect.tsx b/public/app/features/dashboard/containers/DashboardSelect.tsx index d179d68f..2351da17 100644 --- a/public/app/features/dashboard/containers/DashboardSelect.tsx +++ b/public/app/features/dashboard/containers/DashboardSelect.tsx @@ -3,7 +3,7 @@ import React, { useState } from 'react'; import { GrafanaTheme2 } from '@grafana/data'; import { reportInteraction } from '@grafana/runtime'; -import { Menu, Dropdown, useStyles2, ToolbarButton } from '@grafana/ui'; +import { Menu, Dropdown, useStyles2, ToolbarButton, Icon } from '@grafana/ui'; import { useDashboardList } from 'app/features/browse-dashboards/state'; import { GitHubButtonStyles } from '../../../../style/GitHubButtonStyles'; @@ -66,7 +66,12 @@ const DashboardSelect = () => { className={cx(gitHubButtonStyles.button, gitHubButtonStyles.basicButton, styles.button)} aria-label="New" > -
{currDashboard}
+
+
+ +
+
{currDashboard}
+
@@ -84,8 +89,17 @@ const getStyles = (theme: GrafanaTheme2) => ({ }, }), select: css({ margin: '0px 8px 10px 0px' }), - ellipsis: css({ maxWidth: '150px', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }), - button: css({ maxWidth: '150px' }), + ellipsis: css({ + display: 'flex', + maxWidth: '200px', + whiteSpace: 'nowrap', + overflow: 'hidden', + textOverflow: 'ellipsis', + }), + button: css({ maxWidth: '200px' }), + text: css({ + paddingLeft: '10px', + }), }); export default DashboardSelect;