mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 12:44:10 -06:00
Timeseries: Limit long text in legend (#66307)
This commit is contained in:
parent
ae23ef5b41
commit
7e270021a8
@ -74,6 +74,7 @@ export const VizLegendListItem = <T = unknown,>({
|
||||
<button
|
||||
disabled={readonly}
|
||||
type="button"
|
||||
title={item.label}
|
||||
onBlur={onMouseOut}
|
||||
onFocus={onMouseOver}
|
||||
onMouseOver={onMouseOver}
|
||||
@ -100,6 +101,9 @@ const getStyles = (theme: GrafanaTheme2) => ({
|
||||
font-size: inherit;
|
||||
padding: 0;
|
||||
user-select: text;
|
||||
max-width: 600px;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
`,
|
||||
itemDisabled: css`
|
||||
label: LegendLabelDisabled;
|
||||
|
@ -73,6 +73,7 @@ export const LegendTableItem = ({
|
||||
<button
|
||||
disabled={readonly}
|
||||
type="button"
|
||||
title={item.label}
|
||||
onBlur={onMouseOut}
|
||||
onFocus={onMouseOver}
|
||||
onMouseOver={onMouseOver}
|
||||
@ -122,6 +123,9 @@ const getStyles = (theme: GrafanaTheme2) => {
|
||||
border: none;
|
||||
font-size: inherit;
|
||||
padding: 0;
|
||||
max-width: 600px;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
`,
|
||||
labelDisabled: css`
|
||||
label: LegendLabelDisabled;
|
||||
|
Loading…
Reference in New Issue
Block a user