fix(my-joy-instances): truncate summary copy on Instance summary card
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
@ -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
|
||||||
|
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
@ -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 {
|
||||||
|