mirror of
https://github.com/grafana/grafana.git
synced 2024-11-28 19:54:10 -06:00
Fix: tooltips value disappear when label has too long word (#21267)
This commit is contained in:
parent
48a93a5bd3
commit
85072b78a4
@ -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>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user