1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-12-28 18:08:08 +00:00

fix device status overflow

This commit is contained in:
slowbackspace 2019-01-08 15:20:16 +01:00
parent ca160451fc
commit 1cfbae6415

View File

@ -48,8 +48,9 @@ const ClickWrapper = styled.div`
`;
const LabelWrapper = styled.div`
flex: 1;
flex: 1 1 auto;
padding-left: 18px;
overflow: hidden;
`;
const Name = styled.div`
@ -73,6 +74,8 @@ const Status = styled.div`
const IconWrapper = styled.div`
padding-right: 25px;
display: flex;
flex: 1 0 0;
justify-content: flex-end;
`;
const ImageWrapper = styled.div`
@ -122,7 +125,7 @@ const DeviceHeader = ({
</ImageWrapper>
<LabelWrapper>
<Name>{device.instanceLabel}</Name>
<Status>{getStatusName(status)}</Status>
<Status title={getStatusName(status)}>{getStatusName(status)}</Status>
</LabelWrapper>
<IconWrapper>
{icon && !disabled && isAccessible && icon}