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)};
|
||||
`;
|
||||
|
||||
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
|
||||
|
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 {
|
||||
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 {
|
||||
|