Skip to content

Commit 77a87a2

Browse files
committed
chore: more adjustments
1 parent 1fef8b1 commit 77a87a2

File tree

10 files changed

+27
-18
lines changed

10 files changed

+27
-18
lines changed

web/src/components/DisputePreview/Policies.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const Container = styled.div`
1818
flex-direction: row;
1919
flex-wrap: wrap;
2020
gap: 8px 16px;
21-
padding: ${responsiveSize(16, 20)} ${responsiveSize(16, 32)};
21+
padding: ${responsiveSize(12, 20)} ${responsiveSize(8, 32)};
2222
background-color: ${({ theme }) => theme.mediumBlue};
2323
`;
2424

web/src/components/DisputeView/DisputeCardView.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const StyledCard = styled(Card)`
2525

2626
const CardContainer = styled.div`
2727
height: calc(100% - 45px);
28-
padding: ${responsiveSize(20, 24)};
28+
padding: ${responsiveSize(20, 24)} ${responsiveSize(8, 24)};
2929
display: flex;
3030
flex-direction: column;
3131
justify-content: space-between;

web/src/components/DisputeView/PeriodBanner.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const Container = styled.div<IContainer>`
2020
align-items: center;
2121
gap: 8px;
2222
justify-content: space-between;
23-
padding: 0 ${({ isCard }) => (isCard ? "24px" : responsiveSize(8, 24, 900))};
23+
padding: 0 ${({ isCard }) => (isCard ? responsiveSize(8, 24) : responsiveSize(8, 24, 900))};
2424
flex-shrink: 0;
2525
${({ frontColor, backgroundColor, isCard }) => {
2626
return `

web/src/pages/Courts/CourtDetails/Description.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ const Container = styled.div`
1717
const TextContainer = styled.div`
1818
width: 100%;
1919
padding: 12px 0;
20+
21+
p {
22+
word-break: break-word;
23+
}
2024
`;
2125

2226
const StyledTabs = styled(Tabs)`

web/src/pages/Courts/CourtDetails/Stats.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import { StyledSkeleton } from "components/StyledSkeleton";
3131

3232
const StyledAccordion = styled(Accordion)`
3333
> * > button {
34+
padding: 12px ${responsiveSize(8, 24)} !important;
3435
justify-content: unset;
3536
}
3637
//adds padding to body container

web/src/pages/Dashboard/Courts/Header.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ import NumberDisplay from "components/NumberDisplay";
1414

1515
const Container = styled.div`
1616
display: flex;
17-
flex-direction: column;
17+
flex-direction: row;
18+
flex-wrap: wrap;
1819
width: 100%;
19-
gap: 4px;
20-
align-items: flex-start;
21-
justify-content: space-between;
20+
gap: 4px 16px;
21+
align-items: center;
2222
margin-bottom: ${responsiveSize(16, 24)};
2323
2424
${landscapeStyle(
2525
() => css`
26-
flex-direction: row;
26+
justify-content: space-between;
2727
`
2828
)}
2929
`;

web/src/pages/Home/Community/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const StyledCard = styled(Card)`
2626
gap: 12px;
2727
flex-direction: column;
2828
flex-wrap: wrap;
29-
padding: 24px;
29+
padding: ${responsiveSize(12, 24)} ${responsiveSize(8, 24)};
3030
align-items: flex-start;
3131
3232
${landscapeStyle(

web/src/pages/Home/CourtOverview/Stats.tsx

+8-5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import JurorIcon from "svgs/icons/user.svg";
1212
import { CoinIds } from "consts/coingecko";
1313
import { useCoinPrice } from "hooks/useCoinPrice";
1414
import { useHomePageContext, HomePageQuery, HomePageQueryDataPoints } from "hooks/useHomePageContext";
15+
import useIsDesktop from "hooks/useIsDesktop";
1516
import { calculateSubtextRender } from "utils/calculateSubtextRender";
1617
import { formatETH, formatPNK, formatUnitsWei, formatUSD } from "utils/format";
1718
import { isUndefined } from "utils/index";
@@ -24,10 +25,10 @@ import { StyledSkeleton } from "components/StyledSkeleton";
2425
const StyledCard = styled(Card)`
2526
width: auto;
2627
height: fit-content;
27-
gap: 32px 0;
28-
padding: ${responsiveSize(16, 32)};
28+
gap: 16px 8px;
29+
padding: ${responsiveSize(16, 24)} ${responsiveSize(8, 24)};
2930
display: grid;
30-
grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
31+
grid-template-columns: repeat(auto-fit, minmax(152px, 1fr));
3132
`;
3233

3334
const getLastOrZero = (src: HomePageQuery["counters"], stat: HomePageQueryDataPoints) =>
@@ -53,7 +54,7 @@ const stats: IStat[] = [
5354
icon: PNKIcon,
5455
},
5556
{
56-
title: "ETH Paid to jurors",
57+
title: "ETH Paid",
5758
coinId: 1,
5859
getText: (counters) => formatETH(getLastOrZero(counters, "paidETH")),
5960
getSubtext: (counters, coinPrice) =>
@@ -88,6 +89,8 @@ const Stats = () => {
8889
const { data } = useHomePageContext();
8990
const coinIds = [CoinIds.PNK, CoinIds.ETH];
9091
const { prices: pricesData } = useCoinPrice(coinIds);
92+
const isDesktop = useIsDesktop();
93+
9194
return (
9295
<StyledCard>
9396
{stats.map(({ title, coinId, getText, getSubtext, color, icon }, i) => {
@@ -99,7 +102,7 @@ const Stats = () => {
99102
{...{ title, color, icon }}
100103
text={data ? getText(data["counters"]) : <StyledSkeleton />}
101104
subtext={calculateSubtextRender(data ? data["counters"] : undefined, getSubtext, coinPrice)}
102-
isSmallDisplay={false}
105+
isSmallDisplay={!isDesktop}
103106
/>
104107
);
105108
})}

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import React from "react";
22
import styled, { css } from "styled-components";
33

4-
import { useToggle } from "react-use";
5-
64
import { landscapeStyle } from "styles/landscapeStyle";
5+
import { responsiveSize } from "styles/responsiveSize";
6+
7+
import { useToggle } from "react-use";
78

89
import HowItWorks from "components/HowItWorks";
910
import JurorLevels from "components/Popup/MiniGuides/JurorLevels";
@@ -13,7 +14,7 @@ const Container = styled.div`
1314
justify-content: space-between;
1415
width: 100%;
1516
background-color: ${({ theme }) => theme.lightBlue};
16-
padding: 24px;
17+
padding: 16px ${responsiveSize(8, 24)};
1718
border 1px solid ${({ theme }) => theme.stroke};
1819
border-top-left-radius: 3px;
1920
border-top-right-radius: 3px;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const Container = styled.div`
1818
flex-wrap: wrap;
1919
width: 100%;
2020
background-color: ${({ theme }) => theme.whiteBackground};
21-
padding: 16px 24px 24px 24px;
21+
padding: 8px 8px 12px;
2222
border 1px solid ${({ theme }) => theme.stroke};
2323
border-top: none;
2424
align-items: center;

0 commit comments

Comments
 (0)