@@ -7,11 +7,12 @@ import styled from 'styled-components'
7
7
import { formatPrice , formatAmount , invertPrice , formatAmountFull } from '@gnosis.pm/dex-js'
8
8
9
9
import FilterTools from 'components/FilterTools'
10
- import { CardTable , CardWidgetWrapper } from 'components/Layout/Card'
10
+ import { CardTable } from 'components/Layout/Card'
11
11
import { ConnectWalletBanner } from 'components/ConnectWalletBanner'
12
12
import { FileDownloaderLink } from 'components/FileDownloaderLink'
13
13
import { StandaloneCardWrapper } from 'components/Layout/PageWrapper'
14
14
import { TradeRow } from 'components/TradesWidget/TradeRow'
15
+ import { BalancesWidget } from 'components/DepositWidget'
15
16
16
17
import { useWalletConnection } from 'hooks/useWalletConnection'
17
18
import { useTrades } from 'hooks/useTrades'
@@ -21,10 +22,32 @@ import { Trade } from 'api/exchange/ExchangeApi'
21
22
22
23
import { toCsv , CsvColumns } from 'utils/csv'
23
24
import { filterTradesFn } from 'utils/filter'
24
-
25
25
import { getNetworkFromId , divideBN } from 'utils'
26
26
import { symbolOrAddress } from 'utils/display'
27
27
28
+ const OverflowContainer = styled ( BalancesWidget ) `
29
+ > ${ CardTable } {
30
+ > thead > tr:not(.cardRowDrawer) {
31
+ padding: 0.8rem 2rem 0.8rem 1.6rem;
32
+ }
33
+
34
+ > thead,
35
+ > tbody {
36
+ font-size: 1.3rem;
37
+
38
+ > tr:not(.cardRowDrawer) {
39
+ min-height: 4rem;
40
+ text-align: left;
41
+ > td,
42
+ > th {
43
+ justify-content: flex-start;
44
+ text-align: left;
45
+ }
46
+ }
47
+ }
48
+ }
49
+ `
50
+
28
51
const CsvButtonContainer = styled . div `
29
52
display: flex;
30
53
justify-content: space-between;
@@ -205,7 +228,7 @@ export const TradesWidget: React.FC = () => {
205
228
< ConnectWalletBanner />
206
229
) : (
207
230
< StandaloneCardWrapper >
208
- < CardWidgetWrapper >
231
+ < OverflowContainer >
209
232
< FilterTools
210
233
className = "widgetFilterTools"
211
234
resultName = "trades"
@@ -215,7 +238,7 @@ export const TradesWidget: React.FC = () => {
215
238
dataLength = { filteredData . length }
216
239
/>
217
240
< InnerTradesWidget trades = { filteredData } />
218
- </ CardWidgetWrapper >
241
+ </ OverflowContainer >
219
242
</ StandaloneCardWrapper >
220
243
)
221
244
}
0 commit comments