Skip to content

Commit

Permalink
more mobile tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
uncoolzero committed Oct 12, 2024
1 parent 57a4424 commit 931f728
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions projects/ui/src/pages/l1transfer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Accordion, AccordionDetails, Box, Button, Card, Stack, Typography } from '@mui/material';
import { Accordion, AccordionDetails, Box, Button, Card, Stack, Typography, useMediaQuery, useTheme } from '@mui/material';
import { Form, Formik, FormikHelpers, FormikProps } from 'formik';
import React, { useCallback, useEffect, useMemo, useState } from 'react';
import { ethers } from 'ethers';
Expand Down Expand Up @@ -306,8 +306,11 @@ const TransferForm: FC<
(sameAddressCheck ? !internalExternalCheck : true) &&
(ethTransferCheck ? ethTransferModeCheck : true);

const theme = useTheme();
const isMobile = useMediaQuery(theme.breakpoints.down('sm'));

return (
<Box sx={{ padding: 1, maxWidth: 600, minWidth: 300 }}>
<Box sx={{ padding: 1, maxWidth: 600, width: !isMobile ? 600 : undefined, minWidth: 300 }}>
<PageHeader
title="Transfer assets from L1 Beanstalk"
description="Transfer non-Beanstalk assets that were not automatically migrated"
Expand Down

0 comments on commit 931f728

Please sign in to comment.