Skip to content

Commit f0e8ef6

Browse files
authored
chore: improve css on view transactions button [skip cypress] (#2368)
1 parent da6ac23 commit f0e8ef6

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

src/modules/dashboard/DashboardContentWrapper.tsx

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,19 @@ export const DashboardContentWrapper = ({ isBorrow }: DashboardContentWrapperPro
4747
}}
4848
>
4949
{currentAccount && !isBorrow && downToLg && (
50-
<Box>
50+
<Box
51+
sx={{
52+
position: { xs: 'static', md: 'relative' },
53+
display: 'flex',
54+
justifyContent: 'flex-end',
55+
mb: { xs: 2, md: 0 },
56+
}}
57+
>
5158
<Button
5259
sx={{
53-
position: 'absolute',
54-
top: '-130px',
55-
right: '0px',
60+
position: { xs: 'static', md: 'absolute' },
61+
top: { xs: 'auto', md: '-130px' },
62+
right: { xs: 'auto', md: '0px' },
5663
}}
5764
onClick={() => {
5865
router.push(ROUTES.history);
@@ -82,11 +89,10 @@ export const DashboardContentWrapper = ({ isBorrow }: DashboardContentWrapperPro
8289
{currentAccount && (
8390
<Box
8491
sx={{
85-
position: 'absolute',
86-
87-
top: downToLg ? '-130px' : '-90px',
88-
89-
right: '0px',
92+
position: { xs: 'static', md: 'absolute' },
93+
top: { xs: 'auto', md: downToLg ? '-130px' : '-90px' },
94+
right: { xs: 'auto', md: '0px' },
95+
mb: { xs: 2, md: 0 },
9096
}}
9197
>
9298
<Button

0 commit comments

Comments
 (0)