[7.x] [Metrics UI] Fix node details overlay title with long host name (#90825) (#91024)

This commit is contained in:
Zacqary Adam Xeper 2021-02-10 16:07:53 -06:00 committed by GitHub
parent a48eeedd02
commit 868b40eb2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,11 +89,11 @@ export const NodeContextPopover = ({
<OverlayPanel>
<OverlayHeader>
<EuiFlexGroup responsive={false} gutterSize="m">
<EuiFlexItem grow={true}>
<OverlayTitle grow={true}>
<EuiTitle size="xs">
<h4>{node.name}</h4>
</EuiTitle>
</EuiFlexItem>
</OverlayTitle>
<EuiFlexItem grow={false}>
<EuiFlexGroup gutterSize="m" responsive={false}>
<EuiFlexItem grow={false}>
@ -194,3 +194,12 @@ const OverlayPanel = euiStyled(EuiPanel).attrs({ paddingSize: 'none' })`
max-width: 100%;
}
`;
const OverlayTitle = euiStyled(EuiFlexItem)`
overflow: hidden;
& h4 {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
`;