Skip to content

Commit 517b1d0

Browse files
committed
refactor(web): center-top-juror-column-content
1 parent c1c6553 commit 517b1d0

File tree

6 files changed

+17
-7
lines changed

6 files changed

+17
-7
lines changed

web/src/pages/Home/TopJurors/Header/Coherency.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const Container = styled.div`
1717
() =>
1818
css`
1919
font-size: 14px !important;
20+
justify-content: center;
2021
&::before {
2122
content: "Coherent Votes";
2223
}

web/src/pages/Home/TopJurors/Header/DesktopHeader.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ const Container = styled.div`
2222
css`
2323
display: grid;
2424
grid-template-columns:
25-
min-content repeat(2, calc(80px + (200 - 60) * (min(max(100vw, 375px), 1250px) - 375px) / 875))
26-
max-content auto;
27-
column-gap: calc(16px + (28 - 16) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
25+
min-content repeat(3, calc(160px + (180 - 160) * (min(max(100vw, 900px), 1250px) - 900px) / 350))
26+
auto;
27+
column-gap: calc(12px + (28 - 12) * (min(max(100vw, 900px), 1250px) - 900px) / 350);
2828
align-items: center;
2929
`
3030
)}

web/src/pages/Home/TopJurors/Header/Rewards.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const Container = styled.div`
1717
() =>
1818
css`
1919
font-size: 14px !important;
20+
justify-content: center;
2021
&::before {
2122
content: "Total Rewards";
2223
}

web/src/pages/Home/TopJurors/JurorCard/Coherency.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const Container = styled.div`
77
font-weight: 600;
88
color: ${({ theme }) => theme.primaryText};
99
flex-wrap: wrap;
10+
justify-content: center;
1011
`;
1112

1213
interface ICoherency {

web/src/pages/Home/TopJurors/JurorCard/DesktopCard.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ const Container = styled.div`
2020
() => css`
2121
display: grid;
2222
grid-template-columns:
23-
min-content repeat(2, calc(80px + (200 - 60) * (min(max(100vw, 375px), 1250px) - 375px) / 875))
24-
min-content auto;
25-
column-gap: calc(16px + (28 - 16) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
23+
min-content repeat(3, calc(160px + (180 - 160) * (min(max(100vw, 900px), 1250px) - 900px) / 350))
24+
auto;
25+
column-gap: calc(12px + (28 - 12) * (min(max(100vw, 900px), 1250px) - 900px) / 350);
2626
`
2727
)}
2828
`;

web/src/pages/Home/TopJurors/JurorCard/Rewards.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
import React from "react";
2-
import styled from "styled-components";
2+
import styled, { css } from "styled-components";
33
import { getFormattedRewards } from "utils/jurorRewardConfig";
44
import EthIcon from "assets/svgs/icons/eth.svg";
55
import PnkIcon from "assets/svgs/icons/kleros.svg";
66
import { useUserQuery } from "hooks/queries/useUser";
7+
import { landscapeStyle } from "styles/landscapeStyle";
78

89
const Container = styled.div`
910
display: flex;
1011
gap: 8px;
1112
align-items: center;
1213
flex-wrap: wrap;
14+
15+
${landscapeStyle(
16+
() => css`
17+
justify-content: center;
18+
`
19+
)}
1320
`;
1421

1522
const StyledIcon = styled.div`

0 commit comments

Comments
 (0)