Skip to content

Commit 0a1ab52

Browse files
committed
feat: ui styling impros for pc and mobile
1 parent f0ca326 commit 0a1ab52

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

web/src/components/InformationCard/Policies.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const ShadeArea = styled.div`
1414
flex-direction: column;
1515
justify-content: center;
1616
width: 100%;
17-
padding: ${responsiveSize(16, 20)} ${responsiveSize(16, 32)};
17+
padding: 24px ${responsiveSize(24, 32)};
1818
margin-top: 16px;
1919
background-color: ${({ theme }) => theme.mediumBlue};
2020

web/src/components/InformationCard/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const TopInfo = styled.div`
5656
justify-content: space-between;
5757
flex-wrap: wrap;
5858
gap: 12px;
59-
padding: 24px ${responsiveSize(24, 32)} 12px ${responsiveSize(24, 32)};
59+
padding: ${responsiveSize(20, 24)} ${responsiveSize(24, 32)} 12px ${responsiveSize(24, 32)};
6060
`;
6161

6262
const LogoAndTitle = styled.div`
@@ -93,8 +93,8 @@ const StyledEtherscanIcon = styled(EtherscanIcon)`
9393
`;
9494

9595
const StyledLogo = styled.img<{ isListView: boolean }>`
96-
width: ${({ isListView }) => (isListView ? "48px" : "125px")};
97-
height: ${({ isListView }) => (isListView ? "48px" : "125px")};
96+
width: ${({ isListView }) => (isListView ? "40px" : "125px")};
97+
height: ${({ isListView }) => (isListView ? "40px" : "125px")};
9898
object-fit: contain;
9999
margin-bottom: ${({ isListView }) => (isListView ? "0px" : "8px")};
100100
`;
@@ -123,7 +123,7 @@ const BottomInfo = styled.div`
123123
display: flex;
124124
padding: 0 ${responsiveSize(24, 32)} 12px ${responsiveSize(24, 32)};
125125
flex-wrap: wrap;
126-
gap: 12px;
126+
gap: 20px;
127127
justify-content: space-between;
128128
`;
129129

web/src/components/ItemCard/ItemField/ImageField.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import styled from "styled-components";
33
import { getIpfsUrl } from "utils/getIpfsUrl";
44

55
const StyledImg = styled.img<{ detailed?: boolean }>`
6-
width: ${({ detailed }) => (detailed ? "125px" : "48px")};
7-
height: ${({ detailed }) => (detailed ? "125px" : "48px")};
6+
width: ${({ detailed }) => (detailed ? "125px" : "40px")};
7+
height: ${({ detailed }) => (detailed ? "125px" : "40px")};
88
object-fit: contain;
99
`;
1010

web/src/components/RegistryCard/RegistryInfo.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const Container = styled.div<{ isListView: boolean }>`
2727
display: grid;
2828
grid-template-rows: repeat(3, min-content);
2929
grid-template-columns: 21px max-content 1fr max-content;
30-
column-gap: ${responsiveSize(8, 12, 900)};
30+
column-gap: ${responsiveSize(8, 24, 900)};
3131
row-gap: 16px;
3232
padding: 16px;
3333
h3,
@@ -53,8 +53,8 @@ const Container = styled.div<{ isListView: boolean }>`
5353
`;
5454

5555
const StyledLogo = styled.img<{ isListView: boolean }>`
56-
width: ${({ isListView }) => (isListView ? "48px" : "125px")};
57-
height: ${({ isListView }) => (isListView ? "48px" : "125px")};
56+
width: ${({ isListView }) => (isListView ? "40px" : "125px")};
57+
height: ${({ isListView }) => (isListView ? "40px" : "125px")};
5858
object-fit: contain;
5959
margin-bottom: ${({ isListView }) => (isListView ? "0px" : "8px")};
6060
`;
@@ -93,8 +93,8 @@ const StyledButton = styled(Button)`
9393
`;
9494

9595
const SkeletonLogo = styled(Skeleton)<{ isListView: boolean }>`
96-
width: ${({ isListView }) => (isListView ? "48px" : "125px")};
97-
height: ${({ isListView }) => (isListView ? "48px" : "125px")};
96+
width: ${({ isListView }) => (isListView ? "40px" : "125px")};
97+
height: ${({ isListView }) => (isListView ? "40px" : "125px")};
9898
border-radius: ${({ isListView }) => (isListView ? "24px" : "62.5px")};
9999
margin-bottom: ${({ isListView }) => (isListView ? "0px" : "8px")};
100100
`;

0 commit comments

Comments
 (0)