Skip to content

Commit b4628aa

Browse files
authored
Merge pull request #1811 from kleros/feat/ui-improvements
chore: slight cosmetic adjustments
2 parents 36c3af4 + 37d768d commit b4628aa

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

web/src/components/EvidenceCard.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,12 @@ const IndexAndName = styled.div`
5757
display: flex;
5858
flex-direction: row;
5959
align-items: center;
60-
gap: 6px;
60+
gap: 5px;
6161
`;
6262

6363
const Index = styled.p`
6464
display: inline-block;
65+
color: ${({ theme }) => theme.secondaryText};
6566
`;
6667

6768
const StyledReactMarkdown = styled(ReactMarkdown)`
@@ -78,7 +79,6 @@ const StyledReactMarkdown = styled(ReactMarkdown)`
7879

7980
const BottomShade = styled.div`
8081
background-color: ${({ theme }) => theme.lightBlue};
81-
border-top: 1px solid ${({ theme }) => theme.stroke};
8282
display: flex;
8383
flex-wrap: wrap;
8484
align-items: center;
@@ -92,7 +92,7 @@ const BottomShade = styled.div`
9292
9393
${landscapeStyle(
9494
() => css`
95-
padding: 16px 24px;
95+
padding: 12px 24px;
9696
`
9797
)}
9898
`;
@@ -231,7 +231,7 @@ const EvidenceCard: React.FC<IEvidenceCard> = ({
231231
<StyledCard>
232232
<TopContent>
233233
<IndexAndName>
234-
<Index>#{index}: </Index>
234+
<Index>#{index}. </Index>
235235
<h3>{name}</h3>
236236
</IndexAndName>
237237
{name && description ? <StyledReactMarkdown>{description}</StyledReactMarkdown> : <p>{evidence}</p>}

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/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/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
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const Container = styled.div`
1919
border-top-right-radius: 3px;
2020
border-bottom: none;
2121
flex-wrap: wrap;
22+
2223
${landscapeStyle(
2324
() => css`
2425
display: none;

0 commit comments

Comments
 (0)