fixed problem with performance of cluster name in left side (#1635)
This commit is contained in:
parent
b8761b500d
commit
3f0693bad6
2 changed files with 6 additions and 2 deletions
|
@ -28,8 +28,12 @@ export const Wrapper = styled.li.attrs({ role: 'menuitem' })(
|
|||
`
|
||||
);
|
||||
|
||||
export const Title = styled.span`
|
||||
export const Title = styled.div`
|
||||
grid-area: title;
|
||||
white-space: nowrap;
|
||||
max-width: 110px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
`;
|
||||
|
||||
export const StatusIconWrapper = styled.svg.attrs({
|
||||
|
|
|
@ -17,7 +17,7 @@ const ClusterTab: React.FC<ClusterTabProps> = ({
|
|||
toggleClusterMenu,
|
||||
}) => (
|
||||
<S.Wrapper onClick={toggleClusterMenu}>
|
||||
<S.Title>{title}</S.Title>
|
||||
<S.Title title={title}>{title}</S.Title>
|
||||
|
||||
<S.StatusIconWrapper>
|
||||
<S.StatusIcon status={status} aria-label="status">
|
||||
|
|
Loading…
Add table
Reference in a new issue