Skip to content

Commit

Permalink
[Metrics UI] Fixing title truncation in Metrics Explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
simianhacker committed Jan 24, 2020
1 parent 25765a9 commit 7f24a7c
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 @@ -86,7 +86,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 @@ -159,7 +159,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 7f24a7c

Please sign in to comment.