Skip to content

Commit

Permalink
Make account details responsive based on element widths
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaw3d committed Apr 9, 2024
1 parent 14662e9 commit 9a2426d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/pages/AccountPage/Features/AccountDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
*/
import { Box } from 'grommet/es6/components/Box'
import React, { memo } from 'react'
import { memo } from 'react'
import { useSelector } from 'react-redux'
import { SendTransaction } from '../SendTransaction'
import { TransactionHistory } from '../TransactionHistory'
Expand All @@ -16,13 +16,13 @@ export const AccountDetails = memo((props: Props) => {
const isAddressInWallet = useSelector(selectIsAddressInWallet)

return (
<Box direction="row-responsive" gap="small">
<Box direction="row" wrap style={{ gap: '24px' }}>
{isAddressInWallet && (
<Box flex basis="1/4" width={{ min: '300px' }}>
<Box flex={{ grow: 1 }} basis="32ex" width={{ max: '100%' }}>
<SendTransaction isAddressInWallet={isAddressInWallet} />
</Box>
)}
<Box flex basis="3/4">
<Box flex={{ grow: 3 }} basis="80ex" width={{ max: '100%' }}>
<TransactionHistory />
</Box>
</Box>
Expand Down

0 comments on commit 9a2426d

Please sign in to comment.