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)}; padding-right: ${remcalc(3)};
`; `;
const TrimedLabel = styled(Label)`
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
`
const Flex = styled.div` const Flex = styled.div`
align-items: center; align-items: center;
display: flex; display: flex;
@ -78,17 +84,17 @@ export const Meta = ({
</Row>, </Row>,
<Margin top={2} bottom={3}> <Margin top={2} bottom={3}>
<Flex> <Flex>
<Label> <TrimedLabel>
{image && image.name ? titleCase(image.name) : 'Custom Image'} {image && image.name ? titleCase(image.name) : 'Custom Image'}
</Label> </TrimedLabel>
<VerticalDivider /> <VerticalDivider />
<Label> <TrimedLabel>
{brand === 'LX' {brand === 'LX'
? 'Infrastructure container' ? 'Infrastructure container'
: 'Hardware virtual machine'} : 'Hardware virtual machine'}
</Label> </TrimedLabel>
<VerticalDivider /> <VerticalDivider />
<Label>{(instance.package || {}).name}</Label> <TrimedLabel>{(instance.package || {}).name}</TrimedLabel>
<VerticalDivider /> <VerticalDivider />
<Flex> <Flex>
<DotIcon <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 { .c2 {
padding-top: 0.75rem; padding-top: 0.375rem;
padding-bottom: 0.75rem; padding-bottom: 0.375rem;
} }
.c8 { .c8 {
@ -264,8 +264,8 @@ exports[`renders <Breadcrumb match /> without throwing 1`] = `
} }
.c2 { .c2 {
padding-top: 0.75rem; padding-top: 0.375rem;
padding-bottom: 0.75rem; padding-bottom: 0.375rem;
} }
.c8 { .c8 {