Skip to content

Commit

Permalink
[Metrics UI] Fixing title truncation in Metrics Explorer (#55917) (#5…
Browse files Browse the repository at this point in the history
…6249)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
simianhacker and elasticmachine authored Jan 29, 2020
1 parent ef5b680 commit 01f3bfe
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 01f3bfe

Please sign in to comment.