better alignment on top items
This commit is contained in:
parent
d640e05804
commit
4a712cc004
16
src/App.tsx
16
src/App.tsx
@ -459,7 +459,14 @@ export default function App() {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{/* Status & Clear */}
|
{/* Status & Clear */}
|
||||||
<Box position="absolute" top={16} right={16} textAlign="right">
|
{/* <Box position="absolute" top={16} right={16} textAlign="right"> */}
|
||||||
|
<Box
|
||||||
|
mx={1}
|
||||||
|
display="flex"
|
||||||
|
alignItems="center"
|
||||||
|
alignContent="flex-end"
|
||||||
|
flexDirection="row"
|
||||||
|
>
|
||||||
<Typography variant="caption">
|
<Typography variant="caption">
|
||||||
Trades: {tradesCount.toLocaleString()}
|
Trades: {tradesCount.toLocaleString()}
|
||||||
<br />
|
<br />
|
||||||
@ -476,6 +483,7 @@ export default function App() {
|
|||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
variant="contained"
|
variant="contained"
|
||||||
|
size="small"
|
||||||
color="secondary"
|
color="secondary"
|
||||||
onClick={() => doHistoricalFetch(selectedChain)}
|
onClick={() => doHistoricalFetch(selectedChain)}
|
||||||
disabled={isFetching[selectedChain]}
|
disabled={isFetching[selectedChain]}
|
||||||
@ -525,7 +533,7 @@ export default function App() {
|
|||||||
size="small"
|
size="small"
|
||||||
variant={period === p.label ? 'contained' : 'outlined'}
|
variant={period === p.label ? 'contained' : 'outlined'}
|
||||||
onClick={() => setPeriod(p.label)}
|
onClick={() => setPeriod(p.label)}
|
||||||
sx={{ mx: 0.5 }}
|
sx={{ mx: 0.1 }}
|
||||||
>
|
>
|
||||||
{p.label}
|
{p.label}
|
||||||
</Button>
|
</Button>
|
||||||
@ -533,7 +541,7 @@ export default function App() {
|
|||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
{/* Fetch Buttons */}
|
{/* Fetch Buttons */}
|
||||||
<Box mb={2}>
|
<Box mx={2}>
|
||||||
{!tradesCount && !loading && (
|
{!tradesCount && !loading && (
|
||||||
<Button
|
<Button
|
||||||
variant="contained"
|
variant="contained"
|
||||||
@ -549,7 +557,7 @@ export default function App() {
|
|||||||
onClick={() => doIncrementalFetch(selectedChain)}
|
onClick={() => doIncrementalFetch(selectedChain)}
|
||||||
sx={{ ml: 2 }}
|
sx={{ ml: 2 }}
|
||||||
>
|
>
|
||||||
Fetch new trades (over 24h old)
|
Fetch new trades (notice!)
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
{loading && <CircularProgress size={24} sx={{ ml: 2 }} />}
|
{loading && <CircularProgress size={24} sx={{ ml: 2 }} />}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user