Skip to content

Commit e0c3907

Browse files
committed
ISSUE #5188 - reduce property shrinking to the minimum
1 parent 490516b commit e0c3907

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

frontend/src/v5/ui/components/viewer/cards/cardFilters/filterChip/filterChip.styles.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@ export const TextWrapper = styled.div`
2424
`;
2525

2626
export const Property = styled.span`
27-
flex-shrink: 4;
27+
flex-shrink: 0;
2828
overflow: hidden;
2929
white-space: nowrap;
3030
text-overflow: ellipsis;
31+
max-width: calc(100% - 37px);
3132
`;
3233

3334
export const OperatorIconContainer = styled.div`
3435
border: solid 1px ${({ theme }) => theme.palette.base.lightest};
3536
border-radius: 50%;
3637
height: 18px;
37-
width: 18px;
38-
flex-shrink: 0;
38+
aspect-ratio: 1;
3939
display: inline-flex;
4040
justify-content: center;
4141
align-items: center;
@@ -44,14 +44,12 @@ export const OperatorIconContainer = styled.div`
4444

4545
export const DisplayValue = styled.span<{ $multiple?: boolean }>`
4646
margin-left: 3px;
47-
flex-shrink: 1;
4847
overflow: hidden;
4948
white-space: nowrap;
5049
text-overflow: ellipsis;
5150
5251
${({ $multiple }) => $multiple && css`
5352
text-decoration: underline;
54-
flex-shrink: 0;
5553
`}
5654
`;
5755

0 commit comments

Comments
 (0)