Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(web): fix-list-view-style #1556

Merged
merged 4 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions web/src/components/CasesDisplay/StatsAndFilters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const Container = styled.div`
flex-wrap: wrap;
gap: 8px;
margin-top: 11px;
margin-bottom: 48px;
justify-content: space-between;
`;

Expand Down
8 changes: 0 additions & 8 deletions web/src/components/CasesDisplay/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@ import CasesGrid, { ICasesGrid } from "./CasesGrid";
import Search from "./Search";
import StatsAndFilters from "./StatsAndFilters";

const Divider = styled.hr`
display: flex;
border: none;
height: 1px;
background-color: ${({ theme }) => theme.stroke};
margin: ${responsiveSize(20, 24)};
`;
const TitleContainer = styled.div`
display: flex;
justify-content: space-between;
Expand Down Expand Up @@ -72,7 +65,6 @@ const CasesDisplay: React.FC<ICasesDisplay> = ({
</TitleContainer>
<Search />
<StatsAndFilters totalDisputes={numberDisputes ?? 0} closedDisputes={numberClosedDisputes ?? 0} />
<Divider />

{disputes?.length === 0 ? (
<h1>No cases found</h1>
Expand Down
10 changes: 5 additions & 5 deletions web/src/components/DisputeView/DisputeInfo/DisputeInfoList.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import React from "react";
import styled from "styled-components";

import { responsiveSize } from "styles/responsiveSize";
import Field, { IField } from "components/Field";

import CardLabel from "../CardLabels";

import { FieldItem, IDisputeInfo } from ".";

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

const RestOfFieldsContainer = styled.div`
gap: 8px;
gap: 8px ${responsiveSize(8, 32, 900)};
align-items: center;
height: min-content;
width: max-content;
Expand Down
1 change: 0 additions & 1 deletion web/src/components/DisputeView/DisputeListView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const ListContainer = styled.div`
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-right: 8px;
flex-grow: 1;
`;

Expand Down
8 changes: 7 additions & 1 deletion web/src/components/Field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,13 @@ const Field: React.FC<IField> = ({
<Icon />
{(!displayAsList || isOverview || isJurorBalance) && <label>{name}:</label>}
{link ? (
<Link className="link value" to={link}>
<Link
className="link value"
to={link}
onClick={(event) => {
event.stopPropagation();
}}
>
{value}
</Link>
) : (
Expand Down
Loading