Skip to content

Commit a22895a

Browse files
committed
refactor(web): update-information-card-style
1 parent 4ee5c41 commit a22895a

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

web/src/components/InformationCard/index.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ const TopInfo = styled.div`
5757
flex-wrap: wrap;
5858
gap: 12px;
5959
padding: ${responsiveSize(20, 24)} ${responsiveSize(24, 32)} 12px ${responsiveSize(24, 32)};
60+
${landscapeStyle(
61+
() => css`
62+
flex-wrap: nowrap;
63+
`
64+
)}
6065
`;
6166

6267
const LogoAndTitle = styled.div`
@@ -77,11 +82,12 @@ const TopRightInfo = styled.div`
7782
flex-direction: row;
7883
gap: 32px;
7984
flex-wrap: wrap;
85+
flex-shrink: 0;
8086
align-items: start;
8187
padding-top: 20px;
8288
${landscapeStyle(
8389
() => css`
84-
gap: 0 32px;
90+
gap: 0 ${responsiveSize(24, 32, 900)};
8591
`
8692
)}
8793
`;

web/src/components/ItemInformationCard/index.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import styled from "styled-components";
2+
import styled, { css } from "styled-components";
33
import { responsiveSize } from "styles/responsiveSize";
44
import { Card, Copiable } from "@kleros/ui-components-library";
55
import AliasDisplay from "components/RegistryInfo/AliasDisplay";
@@ -11,6 +11,7 @@ import Skeleton from "react-loading-skeleton";
1111
import ActionButton from "../ActionButton";
1212
import { Address } from "viem";
1313
import { mapFromSubgraphStatus } from "../RegistryCard/StatusBanner";
14+
import { landscapeStyle } from "styles/landscapeStyle";
1415

1516
const StyledCard = styled(Card)`
1617
display: flex;
@@ -26,6 +27,11 @@ const TopInfo = styled.div`
2627
flex-wrap: wrap;
2728
gap: 12px;
2829
padding: 12px 32px;
30+
${landscapeStyle(
31+
() => css`
32+
flex-wrap: nowrap;
33+
`
34+
)};
2935
`;
3036

3137
const TopLeftInfo = styled.div`
@@ -43,6 +49,7 @@ const TopRightInfo = styled.div`
4349
align-items: start;
4450
gap: 48px;
4551
padding-top: 20px;
52+
flex-shrink: 0;
4653
`;
4754

4855
const StyledLabel = styled.label`

0 commit comments

Comments
 (0)