Skip to content

Commit 02e92e5

Browse files
[Metrics UI] Fixing title truncation in Metrics Explorer (#55917) (#56248)
Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
1 parent 4ec995e commit 02e92e5

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

x-pack/legacy/plugins/infra/public/components/metrics_explorer/chart.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const MetricsExplorerChart = ({
8585
<EuiTitle size="xs">
8686
<EuiFlexGroup alignItems="center">
8787
<ChartTitle>
88-
<EuiToolTip content={title}>
88+
<EuiToolTip content={title} anchorClassName="metricsExplorerTitleAnchor">
8989
<span>{title}</span>
9090
</EuiToolTip>
9191
</ChartTitle>
@@ -158,7 +158,7 @@ export const MetricsExplorerChart = ({
158158
};
159159

160160
const ChartTitle = euiStyled.div`
161-
width: 100%
161+
width: 100%;
162162
overflow: hidden;
163163
text-overflow: ellipsis;
164164
white-space: nowrap;

x-pack/legacy/plugins/infra/public/index.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
3636

3737
.infrastructureChart .echTooltip__label {
3838
overflow-x: hidden;
39-
white-space: no-wrap;
39+
white-space: nowrap;
4040
text-overflow: ellipsis;
4141
}
42+
43+
.metricsExplorerTitleAnchor {
44+
white-space: nowrap;
45+
text-overflow: ellipsis;
46+
display: inline;
47+
}

0 commit comments

Comments
 (0)