Skip to content

Commit 53435b7

Browse files
committed
chore: slight adjustments, experiment with thinner border in mobile
1 parent 2a1f4d0 commit 53435b7

File tree

13 files changed

+20
-11
lines changed

13 files changed

+20
-11
lines changed

web/src/components/DisputeView/DisputeCardView.tsx

+7
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,16 @@ import PeriodBanner from "./PeriodBanner";
1717

1818
const StyledCard = styled(Card)`
1919
${hoverShortTransitionTiming}
20+
border-width: 0.5px;
2021
width: 100%;
2122
height: 100%;
2223
min-height: 290px;
24+
25+
${landscapeStyle(
26+
() => css`
27+
border-width: 1px;
28+
`
29+
)}
2330
`;
2431

2532
const CardContainer = styled.div`

web/src/components/EvidenceCard.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ const StyledReactMarkdown = styled(ReactMarkdown)`
7878

7979
const BottomShade = styled.div`
8080
background-color: ${({ theme }) => theme.lightBlue};
81-
border-top: 1px solid ${({ theme }) => theme.stroke};
8281
display: flex;
8382
flex-wrap: wrap;
8483
align-items: center;
@@ -92,7 +91,7 @@ const BottomShade = styled.div`
9291
9392
${landscapeStyle(
9493
() => css`
95-
padding: 16px 24px;
94+
padding: 12px 24px;
9695
`
9796
)}
9897
`;

web/src/pages/Cases/CaseDetails/Evidence/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const Container = styled.div`
2727
flex-direction: column;
2828
gap: 16px;
2929
align-items: center;
30-
padding: 16px;
30+
padding: 20px 16px 16px;
3131
3232
${landscapeStyle(
3333
() => css`

web/src/pages/Cases/CaseDetails/Overview/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const Container = styled.div`
2525
display: flex;
2626
flex-direction: column;
2727
gap: 16px;
28-
padding: 16px;
28+
padding: 20px 16px 16px;
2929
3030
${landscapeStyle(
3131
() => css`

web/src/pages/Cases/CaseDetails/Voting/VotesDetails/AccordionTitle.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ import { isUndefined } from "utils/index";
1010
import { shortenAddress } from "utils/shortenAddress";
1111

1212
import { landscapeStyle } from "styles/landscapeStyle";
13-
import { responsiveSize } from "styles/responsiveSize";
1413

1514
const TitleContainer = styled.div`
1615
display: flex;
1716
flex-direction: column;
1817
align-items: start;
19-
gap: ${responsiveSize(8, 12)};
18+
gap: 11px;
2019
flex-wrap: wrap;
2120
${landscapeStyle(
2221
() => css`
2322
flex-direction: row;
2423
align-items: center;
24+
gap: 12px;
2525
`
2626
)}
2727
`;

web/src/pages/Cases/CaseDetails/Voting/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import Classic from "./Classic";
2828
import VotingHistory from "./VotingHistory";
2929

3030
const Container = styled.div`
31-
padding: 16px;
31+
padding: 20px 16px 16px;
3232
3333
${landscapeStyle(
3434
() => css`

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

+2
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,15 @@ const StyledCard = styled(Card)`
2828
flex-wrap: wrap;
2929
padding: 16px;
3030
align-items: flex-start;
31+
border-width: 0.5px;
3132
3233
${landscapeStyle(
3334
() => css`
3435
flex-direction: row;
3536
justify-content: space-between;
3637
gap: 20px;
3738
padding: 24px 32px;
39+
border-width: 1px;
3840
`
3941
)}
4042
`;

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

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ const formatter = new Intl.NumberFormat("en", { notation: "compact" });
2121

2222
const BarContainer = styled.div`
2323
height: 220px;
24-
margin-top: 16px;
2524
`;
2625

2726
ChartJS.register(BarElement);

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

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const Container = styled.div`
2020
margin-bottom: ${responsiveSize(16, 32)};
2121
display: flex;
2222
flex-direction: column;
23+
gap: 16px;
2324
`;
2425

2526
const StyledDropdown = styled(DropdownSelect)`

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

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import StatDisplay, { IStatDisplay } from "components/StatDisplay";
2323
import { StyledSkeleton } from "components/StyledSkeleton";
2424

2525
const StyledCard = styled(Card)`
26+
border-width: 0.5px;
2627
display: grid;
2728
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
2829
width: auto;
@@ -32,6 +33,7 @@ const StyledCard = styled(Card)`
3233
3334
${landscapeStyle(
3435
() => css`
36+
border-width: 1px;
3537
padding: 24px;
3638
`
3739
)}

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

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import "chartjs-adapter-moment";
1616

1717
const LineContainer = styled.div`
1818
height: 220px;
19-
margin-top: 16px;
2019
`;
2120

2221
ChartJS.register(CategoryScale, LinearScale, PointElement, LineElement, TimeScale, Tooltip);

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const Container = styled.div`
1414
width: 100%;
1515
background-color: ${({ theme }) => theme.lightBlue};
1616
padding: 16px;
17-
border 1px solid ${({ theme }) => theme.stroke};
17+
border 0.5px solid ${({ theme }) => theme.stroke};
1818
border-top-left-radius: 3px;
1919
border-top-right-radius: 3px;
2020
border-bottom: none;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const Container = styled.div`
2121
width: 100%;
2222
background-color: ${({ theme }) => theme.whiteBackground};
2323
padding: 8px 16px 12px;
24-
border: 1px solid ${({ theme }) => theme.stroke};
24+
border: 0.5px solid ${({ theme }) => theme.stroke};
2525
border-top: none;
2626
align-items: center;
2727
gap: 16px;

0 commit comments

Comments
 (0)