Skip to content

Commit 80ac304

Browse files
authored
Merge pull request #1556 from kleros/fix(web)/fix-list-view-style
fix(web): fix-list-view-style
2 parents 736fe21 + 9e21ca2 commit 80ac304

File tree

5 files changed

+13
-15
lines changed

5 files changed

+13
-15
lines changed

web/src/components/CasesDisplay/StatsAndFilters.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const Container = styled.div`
99
flex-wrap: wrap;
1010
gap: 8px;
1111
margin-top: 11px;
12+
margin-bottom: 48px;
1213
justify-content: space-between;
1314
`;
1415

web/src/components/CasesDisplay/index.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@ import CasesGrid, { ICasesGrid } from "./CasesGrid";
1313
import Search from "./Search";
1414
import StatsAndFilters from "./StatsAndFilters";
1515

16-
const Divider = styled.hr`
17-
display: flex;
18-
border: none;
19-
height: 1px;
20-
background-color: ${({ theme }) => theme.stroke};
21-
margin: ${responsiveSize(20, 24)};
22-
`;
2316
const TitleContainer = styled.div`
2417
display: flex;
2518
justify-content: space-between;
@@ -72,7 +65,6 @@ const CasesDisplay: React.FC<ICasesDisplay> = ({
7265
</TitleContainer>
7366
<Search />
7467
<StatsAndFilters totalDisputes={numberDisputes ?? 0} closedDisputes={numberClosedDisputes ?? 0} />
75-
<Divider />
7668

7769
{disputes?.length === 0 ? (
7870
<h1>No cases found</h1>

web/src/components/DisputeView/DisputeInfo/DisputeInfoList.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import React from "react";
22
import styled from "styled-components";
3-
3+
import { responsiveSize } from "styles/responsiveSize";
44
import Field, { IField } from "components/Field";
5-
65
import CardLabel from "../CardLabels";
7-
86
import { FieldItem, IDisputeInfo } from ".";
97

108
const Container = styled.div<{ isLabel?: boolean }>`
@@ -13,12 +11,14 @@ const Container = styled.div<{ isLabel?: boolean }>`
1311
height: 100%;
1412
flex-direction: row;
1513
justify-content: ${({ isLabel }) => (isLabel ? "space-between" : "flex-end")};
16-
flex: 0 1 450px;
14+
flex: 0 1 ${responsiveSize(400, 450, 900)};
1715
align-items: center;
16+
padding-right: ${responsiveSize(12, 24, 900)};
17+
gap: 8px;
1818
`;
1919

2020
const RestOfFieldsContainer = styled.div`
21-
gap: 8px;
21+
gap: 8px ${responsiveSize(8, 32, 900)};
2222
align-items: center;
2323
height: min-content;
2424
width: max-content;

web/src/components/DisputeView/DisputeListView.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ const ListContainer = styled.div`
2323
display: flex;
2424
justify-content: space-between;
2525
align-items: flex-start;
26-
margin-right: 8px;
2726
flex-grow: 1;
2827
`;
2928

web/src/components/Field.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,13 @@ const Field: React.FC<IField> = ({
9797
<Icon />
9898
{(!displayAsList || isOverview || isJurorBalance) && <label>{name}:</label>}
9999
{link ? (
100-
<Link className="link value" to={link}>
100+
<Link
101+
className="link value"
102+
to={link}
103+
onClick={(event) => {
104+
event.stopPropagation();
105+
}}
106+
>
101107
{value}
102108
</Link>
103109
) : (

0 commit comments

Comments
 (0)