mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Tempo: Add ellipsis to span name in the span details view (#96719)
This commit is contained in:
parent
1061e4712f
commit
d567be2f10
@ -65,6 +65,12 @@ const getStyles = (theme: GrafanaTheme2) => {
|
|||||||
}),
|
}),
|
||||||
operationName: css({
|
operationName: css({
|
||||||
margin: 0,
|
margin: 0,
|
||||||
|
overflow: 'hidden',
|
||||||
|
textOverflow: 'ellipsis',
|
||||||
|
whiteSpace: 'nowrap',
|
||||||
|
flexBasis: '50%',
|
||||||
|
flexGrow: 0,
|
||||||
|
flexShrink: 0,
|
||||||
}),
|
}),
|
||||||
debugInfo: css({
|
debugInfo: css({
|
||||||
label: 'debugInfo',
|
label: 'debugInfo',
|
||||||
@ -344,7 +350,9 @@ export default function SpanDetail(props: SpanDetailProps) {
|
|||||||
return (
|
return (
|
||||||
<div data-testid="span-detail-component">
|
<div data-testid="span-detail-component">
|
||||||
<div className={styles.header}>
|
<div className={styles.header}>
|
||||||
<h2 className={styles.operationName}>{operationName}</h2>
|
<h2 className={styles.operationName} title={operationName}>
|
||||||
|
{operationName}
|
||||||
|
</h2>
|
||||||
<div className={styles.listWrapper}>
|
<div className={styles.listWrapper}>
|
||||||
<LabeledList className={styles.list} divider={true} items={overviewItems} />
|
<LabeledList className={styles.list} divider={true} items={overviewItems} />
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user