1
1
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
+
4
6
import { Card } from "@kleros/ui-components-library" ;
5
7
import { formatEther } from "viem" ;
8
+
6
9
import { useIsList } from "context/IsListProvider" ;
7
10
import { mapStatusToEnum } from "utils/mapStatusToEnum" ;
8
11
import { isUndefined } from "utils/index" ;
9
- import { StyledSkeleton , StyledSkeletonTitle } from "../StyledSkeleton" ;
10
- import TransactionInfo from "../TransactionInfo" ;
11
- import StatusBanner from "./StatusBanner" ;
12
+
12
13
import { useNavigateAndScrollTop } from "hooks/useNavigateAndScrollTop" ;
13
14
import { useNativeTokenSymbol } from "hooks/useNativeTokenSymbol" ;
14
15
import useFetchIpfsJson from "hooks/useFetchIpfsJson" ;
15
16
import { useTokenMetadata } from "hooks/useTokenMetadata" ;
17
+
16
18
import { TransactionDetailsFragment } from "src/graphql/graphql" ;
17
19
20
+ import { StyledSkeleton , StyledSkeletonTitle } from "../StyledSkeleton" ;
21
+ import TransactionInfo from "../TransactionInfo" ;
22
+ import StatusBanner from "./StatusBanner" ;
23
+
18
24
const StyledCard = styled ( Card ) `
19
25
width: 100%;
20
26
height: 260px;
@@ -29,10 +35,16 @@ const StyledListItem = styled(Card)`
29
35
30
36
const CardContainer = styled . div `
31
37
height: calc(100% - 45px);
32
- padding: ${ responsiveSize ( 20 , 24 ) } ;
38
+ padding: 20px 16px ;
33
39
display: flex;
34
40
flex-direction: column;
35
41
justify-content: space-between;
42
+
43
+ ${ landscapeStyle (
44
+ ( ) => css `
45
+ padding: 20px 24px;
46
+ `
47
+ ) }
36
48
` ;
37
49
38
50
const ListContainer = styled . div `
0 commit comments