1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-30 20:28:09 +00:00

same height DeviceImage

This commit is contained in:
slowbackspace 2019-03-25 12:31:37 +01:00
parent d7b8c5262b
commit 95b562c76c
2 changed files with 4 additions and 6 deletions

View File

@ -91,9 +91,6 @@ const Dot = styled.div`
height: 10px; height: 10px;
`; `;
const StyledTrezorImage = styled(TrezorImage)`
width: ${props => (props.model === 2 ? '17px' : '13px')};
`;
const DeviceHeader = ({ const DeviceHeader = ({
isOpen, isOpen,
@ -120,7 +117,8 @@ const DeviceHeader = ({
> >
<ImageWrapper> <ImageWrapper>
<Dot color={getStatusColor(status)} /> <Dot color={getStatusColor(status)} />
<StyledTrezorImage <TrezorImage
height={28}
model={(device.features && device.features.major_version) || 1} model={(device.features && device.features.major_version) || 1}
/> />
</ImageWrapper> </ImageWrapper>

View File

@ -40,10 +40,10 @@ const Label = styled.div`
`; `;
const IconWrapper = styled.div` const IconWrapper = styled.div`
width: 14px; width: 18px;
display: flex; display: flex;
justify-content: center; justify-content: center;
margin-right: 20px; margin-right: 15px;
`; `;
class MenuItems extends PureComponent { class MenuItems extends PureComponent {