Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance wallet button layout for better responsiveness and alignment. #1799

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 44 additions & 8 deletions src/Pages/Settings/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -370,14 +370,50 @@ const Settings = () => {
Connect your wallet here. This is required for the Distributed Uptime monitor to connect to multiple nodes globally.
</Typography>
</Box>
<Box>
<Stack
direction="row"
spacing={2}
>
<WalletMultiButton />
<WalletDisconnectButton />
</Stack>
<Box
sx={{
display: 'flex',
flexWrap: 'wrap',
gap: theme.spacing(2),
mt: theme.spacing(4),
}}
>
<WalletMultiButton
sx={{
minWidth: theme.spacing(32),
height: theme.spacing(10),
fontSize: theme.typography.body2.fontSize,
fontWeight: theme.typography.fontWeightMedium,
'&:not(:disabled)': {
backgroundColor: theme.palette.accent.main,
'&:hover': {
backgroundColor: theme.palette.accent.dark,
},
},
[theme.breakpoints.down('sm')]: {
minWidth: '100%',
fontSize: theme.typography.body2.fontSize,
},
}}
/>
<WalletDisconnectButton
sx={{
minWidth: theme.spacing(32),
height: theme.spacing(10),
fontSize: theme.typography.body2.fontSize,
fontWeight: theme.typography.fontWeightMedium,
'&:not(:disabled)': {
backgroundColor: theme.palette.error.main,
'&:hover': {
backgroundColor: theme.palette.error.dark,
},
},
[theme.breakpoints.down('sm')]: {
minWidth: '100%',
fontSize: theme.typography.body2.fontSize,
},
}}
/>
</Box>
</ConfigBox>
)}
Expand Down