Skip to content

Commit

Permalink
fix: New tx menu on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
usame-algan committed Jun 22, 2023
1 parent 54b3e6a commit 62d7a2d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/tx-flow/flows/NewTx/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Box, Typography } from '@mui/material'
import { TxModalContext } from '../../'
import TokenTransferFlow from '../TokenTransfer'
import { AppRoutes } from '@/config/routes'
import css from './styles.module.css'

const BUTTONS_HEIGHT = '91px'

Expand All @@ -23,7 +24,7 @@ const NewTxMenu = () => {
}, [setTxFlow])

return (
<Box display="flex" flexDirection="column" alignItems="center" gap={2} width={452} m="auto">
<Box className={css.wrapper}>
<Typography variant="h6" fontWeight={700}>
New transaction
</Typography>
Expand Down
15 changes: 15 additions & 0 deletions src/components/tx-flow/flows/NewTx/styles.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.wrapper {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-2);
width: 100%;
margin: auto;
padding: 0 var(--space-2);
}

@media (min-width: 600px) {
.wrapper {
width: 452px;
}
}

0 comments on commit 62d7a2d

Please sign in to comment.