Skip to content

Commit

Permalink
[Metrics UI] Fixing title truncation in Metrics Explorer (elastic#55917)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
simianhacker and elasticmachine committed Jan 28, 2020
1 parent 85b02e2 commit cdfce6b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const MetricsExplorerChart = ({
<EuiTitle size="xs">
<EuiFlexGroup alignItems="center">
<ChartTitle>
<EuiToolTip content={title}>
<EuiToolTip content={title} anchorClassName="metricsExplorerTitleAnchor">
<span>{title}</span>
</EuiToolTip>
</ChartTitle>
Expand Down Expand Up @@ -158,7 +158,7 @@ export const MetricsExplorerChart = ({
};

const ChartTitle = euiStyled.div`
width: 100%
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
Expand Down
8 changes: 7 additions & 1 deletion x-pack/legacy/plugins/infra/public/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@

.infrastructureChart .echTooltip__label {
overflow-x: hidden;
white-space: no-wrap;
white-space: nowrap;
text-overflow: ellipsis;
}

.metricsExplorerTitleAnchor {
white-space: nowrap;
text-overflow: ellipsis;
display: inline;
}

0 comments on commit cdfce6b

Please sign in to comment.