Revert "ToolTip: Fix flexbox bug with tooltip when maxWidth is set manually (#107145)"

This reverts commit cff743fcd5.
This commit is contained in:
Paul Marbach
2025-06-26 15:34:47 -04:00
committed by Paul Marbach
parent ff4d7d35c6
commit c5c8c0e491
2 changed files with 1 additions and 10 deletions
@@ -56,11 +56,9 @@ export const VizTooltipColorIndicator = ({
const getStyles = (theme: GrafanaTheme2) => ({
leading: css({
marginRight: theme.spacing(0.5),
flex: 'none',
}),
trailing: css({
marginLeft: theme.spacing(0.5),
flex: 'none',
}),
value: css({
width: '12px',
@@ -130,7 +130,7 @@ export const VizTooltipRow = ({
return (
<div className={styles.contentWrapper}>
{(color || label) && (
<div className={styles.labelWrapper}>
<div className={styles.valueWrapper}>
{color && colorPlacement === ColorPlacement.first && (
<VizTooltipColorIndicator color={color} colorIndicator={colorIndicator} lineStyle={lineStyle} />
)}
@@ -222,12 +222,6 @@ const getStyles = (theme: GrafanaTheme2, justify: string, marginRight: string) =
overflow: 'hidden',
marginRight: theme.spacing(2),
}),
labelWrapper: css({
display: 'flex',
alignItems: 'center',
flex: '2',
minWidth: 0,
}),
value: css({
fontWeight: 500,
textOverflow: 'ellipsis',
@@ -236,7 +230,6 @@ const getStyles = (theme: GrafanaTheme2, justify: string, marginRight: string) =
valueWrapper: css({
display: 'flex',
alignItems: 'center',
flex: '1',
}),
activeSeries: css({
fontWeight: theme.typography.fontWeightBold,