Commit 85072b78 by okhowang Committed by Dominik Prokop

Fix: tooltips value disappear when label has too long word (#21267)

parent 48a93a5b
......@@ -26,6 +26,9 @@ const getSeriesTableRowStyles = stylesFactory((theme: GrafanaTheme) => {
seriesTableCell: css`
display: table-cell;
`,
label: css`
word-break: break-all;
`,
value: css`
padding-left: ${theme.spacing.md};
`,
......@@ -45,7 +48,7 @@ const SeriesTableRow: React.FC<SeriesTableRowProps> = ({ color, label, value, is
<SeriesIcon color={color} className={styles.icon} />
</div>
)}
<div className={styles.seriesTableCell}>{label}</div>
<div className={cx(styles.seriesTableCell, styles.label)}>{label}</div>
<div className={cx(styles.seriesTableCell, styles.value)}>{value}</div>
</div>
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment