fix(my-joy-instances): truncate summary copy on Instance summary card

This commit is contained in:
Sara Vieira 2018-03-02 12:17:47 +00:00
parent 11c41272d0
commit f2b9d51597
10 changed files with 3617 additions and 3557 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

View File

@ -40,6 +40,12 @@ const GreyLabel = styled(Label)`
padding-right: ${remcalc(3)};
`;
const TrimedLabel = styled(Label)`
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
`
const Flex = styled.div`
align-items: center;
display: flex;
@ -78,17 +84,17 @@ export const Meta = ({
</Row>,
<Margin top={2} bottom={3}>
<Flex>
<Label>
<TrimedLabel>
{image && image.name ? titleCase(image.name) : 'Custom Image'}
</Label>
</TrimedLabel>
<VerticalDivider />
<Label>
<TrimedLabel>
{brand === 'LX'
? 'Infrastructure container'
: 'Hardware virtual machine'}
</Label>
</TrimedLabel>
<VerticalDivider />
<Label>{(instance.package || {}).name}</Label>
<TrimedLabel>{(instance.package || {}).name}</TrimedLabel>
<VerticalDivider />
<Flex>
<DotIcon

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

View File

@ -73,8 +73,8 @@ exports[`renders <Breadcrumb /> without throwing 1`] = `
}
.c2 {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
padding-top: 0.375rem;
padding-bottom: 0.375rem;
}
.c8 {
@ -264,8 +264,8 @@ exports[`renders <Breadcrumb match /> without throwing 1`] = `
}
.c2 {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
padding-top: 0.375rem;
padding-bottom: 0.375rem;
}
.c8 {