Skip to content

Commit 0c888f4

Browse files
committed
fix: few more adjustments
1 parent ef8024c commit 0c888f4

File tree

2 files changed

+24
-7
lines changed

2 files changed

+24
-7
lines changed

web/src/components/TransactionCard/index.tsx

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
import React from "react";
2-
import styled from "styled-components";
3-
import { responsiveSize } from "styles/responsiveSize";
2+
import styled, { css } from "styled-components";
3+
4+
import { landscapeStyle } from "styles/landscapeStyle";
5+
46
import { Card } from "@kleros/ui-components-library";
57
import { formatEther } from "viem";
8+
69
import { useIsList } from "context/IsListProvider";
710
import { mapStatusToEnum } from "utils/mapStatusToEnum";
811
import { isUndefined } from "utils/index";
9-
import { StyledSkeleton, StyledSkeletonTitle } from "../StyledSkeleton";
10-
import TransactionInfo from "../TransactionInfo";
11-
import StatusBanner from "./StatusBanner";
12+
1213
import { useNavigateAndScrollTop } from "hooks/useNavigateAndScrollTop";
1314
import { useNativeTokenSymbol } from "hooks/useNativeTokenSymbol";
1415
import useFetchIpfsJson from "hooks/useFetchIpfsJson";
1516
import { useTokenMetadata } from "hooks/useTokenMetadata";
17+
1618
import { TransactionDetailsFragment } from "src/graphql/graphql";
1719

20+
import { StyledSkeleton, StyledSkeletonTitle } from "../StyledSkeleton";
21+
import TransactionInfo from "../TransactionInfo";
22+
import StatusBanner from "./StatusBanner";
23+
1824
const StyledCard = styled(Card)`
1925
width: 100%;
2026
height: 260px;
@@ -29,10 +35,16 @@ const StyledListItem = styled(Card)`
2935

3036
const CardContainer = styled.div`
3137
height: calc(100% - 45px);
32-
padding: ${responsiveSize(20, 24)};
38+
padding: 20px 16px;
3339
display: flex;
3440
flex-direction: column;
3541
justify-content: space-between;
42+
43+
${landscapeStyle(
44+
() => css`
45+
padding: 20px 24px;
46+
`
47+
)}
3648
`;
3749

3850
const ListContainer = styled.div`

web/src/components/TransactionsDisplay/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ import { TransactionDetailsFragment } from "src/graphql/graphql";
88

99
const StyledTitle = styled.h1`
1010
margin-bottom: ${responsiveSize(12, 24)};
11+
font-size: ${responsiveSize(20, 24)};
12+
`;
13+
14+
const StyledLabel = styled.label`
15+
font-size: ${responsiveSize(14, 16)};
1116
`;
1217

1318
interface ITransactionsDisplay extends ITransactionsGrid {
@@ -36,7 +41,7 @@ const TransactionsDisplay: React.FC<ITransactionsDisplay> = ({
3641
<StatsAndFilters totalTransactions={totalTransactions ?? 0} resolvedTransactions={resolvedTransactions ?? 0} />
3742

3843
{transactions?.length === 0 ? (
39-
<h1>No transactions found</h1>
44+
<StyledLabel>No transactions found</StyledLabel>
4045
) : (
4146
<TransactionsGrid
4247
transactions={transactions}

0 commit comments

Comments
 (0)