fix: Values field card lacks width in mobile viewports (#7248)

## Description

- This PR fixes the issue #7230 

## Current Behaviour
<img width="411" alt="Screenshot 2024-09-24 at 9 51 42 AM"
src="https://github.com/user-attachments/assets/65d283b8-24fa-4e25-b3bd-2e35efabf768">

## After

<img width="556" alt="Screenshot 2024-09-25 at 10 38 40 AM"
src="https://github.com/user-attachments/assets/97a32497-4230-438f-b048-707bdcd9b674">

<img width="578" alt="Screenshot 2024-09-25 at 10 38 52 AM"
src="https://github.com/user-attachments/assets/74e7d055-96fc-4bf4-bddc-e84cf03a6599">
This commit is contained in:
Harshit Singh 2024-09-25 21:26:47 +05:30 committed by GitHub
parent 3d5ecc9c08
commit 75b493ba6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,11 +29,13 @@ const StyledFieldPreviewCard = styled(SettingsDataModelFieldPreviewCard)`
const StyledPreviewContent = styled.div`
display: flex;
flex-direction: column;
gap: 6px;
`;
const StyledRelationImage = styled.img<{ flip?: boolean }>`
transform: ${({ flip }) => (flip ? 'scaleX(-1)' : 'none')};
transform: ${({ flip }) => (flip ? 'scaleX(-1) rotate(270deg)' : 'none')};
margin: auto;
width: 54px;
`;