|
|
@ -129,7 +129,7 @@ export const VizTooltipRow = ({ |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div className={styles.contentWrapper}> |
|
|
|
<div className={styles.contentWrapper}> |
|
|
|
{(color || label) && ( |
|
|
|
{(color || label) && ( |
|
|
|
<div className={styles.valueWrapper}> |
|
|
|
<div className={styles.labelWrapper}> |
|
|
|
{color && colorPlacement === ColorPlacement.first && ( |
|
|
|
{color && colorPlacement === ColorPlacement.first && ( |
|
|
|
<VizTooltipColorIndicator color={color} colorIndicator={colorIndicator} lineStyle={lineStyle} /> |
|
|
|
<VizTooltipColorIndicator color={color} colorIndicator={colorIndicator} lineStyle={lineStyle} /> |
|
|
|
)} |
|
|
|
)} |
|
|
@ -221,6 +221,12 @@ const getStyles = (theme: GrafanaTheme2, justify: string, marginRight: string) = |
|
|
|
overflow: 'hidden', |
|
|
|
overflow: 'hidden', |
|
|
|
marginRight: theme.spacing(2), |
|
|
|
marginRight: theme.spacing(2), |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
labelWrapper: css({ |
|
|
|
|
|
|
|
display: 'flex', |
|
|
|
|
|
|
|
alignItems: 'center', |
|
|
|
|
|
|
|
flex: '2', |
|
|
|
|
|
|
|
minWidth: 0, |
|
|
|
|
|
|
|
}), |
|
|
|
value: css({ |
|
|
|
value: css({ |
|
|
|
fontWeight: 500, |
|
|
|
fontWeight: 500, |
|
|
|
textOverflow: 'ellipsis', |
|
|
|
textOverflow: 'ellipsis', |
|
|
@ -229,6 +235,7 @@ const getStyles = (theme: GrafanaTheme2, justify: string, marginRight: string) = |
|
|
|
valueWrapper: css({ |
|
|
|
valueWrapper: css({ |
|
|
|
display: 'flex', |
|
|
|
display: 'flex', |
|
|
|
alignItems: 'center', |
|
|
|
alignItems: 'center', |
|
|
|
|
|
|
|
flex: '1', |
|
|
|
}), |
|
|
|
}), |
|
|
|
activeSeries: css({ |
|
|
|
activeSeries: css({ |
|
|
|
fontWeight: theme.typography.fontWeightBold, |
|
|
|
fontWeight: theme.typography.fontWeightBold, |
|
|
|