Explore: Adjust the max-width of the tooltip (#20675)

This commit is contained in:
Ivana Huckova 2019-11-26 21:41:14 +01:00 committed by GitHub
parent 0a3662c359
commit e9f9912dea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,8 +18,8 @@ const getTooltipContainerStyles = stylesFactory((theme: GrafanaTheme) => {
wrapper: css`
overflow: hidden;
background: ${bgColor};
/* 30% is an arbitrary choice. We can be more clever about calculating tooltip\'s width */
max-width: 30%;
/* max-width is set up based on .grafana-tooltip class that's used in dashboard */
max-width: 800px;
padding: ${theme.spacing.sm};
border-radius: ${theme.border.radius.sm};
`,