Skip to content

Commit 7f24a7c

Browse files
committed
[Metrics UI] Fixing title truncation in Metrics Explorer
1 parent 25765a9 commit 7f24a7c

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
@@ -86,7 +86,7 @@ export const MetricsExplorerChart = ({
8686
<EuiTitle size="xs">
8787
<EuiFlexGroup alignItems="center">
8888
<ChartTitle>
89-
<EuiToolTip content={title}>
89+
<EuiToolTip content={title} anchorClassName="metricsExplorerTitleAnchor">
9090
<span>{title}</span>
9191
</EuiToolTip>
9292
</ChartTitle>
@@ -159,7 +159,7 @@ export const MetricsExplorerChart = ({
159159
};
160160

161161
const ChartTitle = euiStyled.div`
162-
width: 100%
162+
width: 100%;
163163
overflow: hidden;
164164
text-overflow: ellipsis;
165165
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)