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

Fit wallet modal to screen on mobile #948

Merged
merged 2 commits into from
Aug 8, 2023
Merged
Show file tree
Hide file tree
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

This file was deleted.

8 changes: 6 additions & 2 deletions src/components/WalletModal/WalletModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,12 @@ const WalletModal: React.FC<WalletModalProps> = ({
}

return (
<CustomModal open={walletModalOpen} onClose={toggleWalletModal}>
<Box className='walletModalWrapper'>{getModalContent()}</Box>
<CustomModal
modalWrapper='walletModalWrapper'
open={walletModalOpen}
onClose={toggleWalletModal}
>
<Box>{getModalContent()}</Box>
</CustomModal>
);
};
Expand Down
2 changes: 0 additions & 2 deletions src/components/WalletModal/options/IconifyOption.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ const IconifyOption: React.FC<WalletOptionProps> = ({
id={id}
onClick={onClick}
className='flex items-center flex-col optionCardIconfiy'
my={1.5}
mx={1.5}
>
<Box className='optionIconContainer'>
<img className='m-auto' src={icon} alt={'Icon'} width={48} />
Expand Down
23 changes: 22 additions & 1 deletion src/components/styles/WalletModal.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
@use 'styles/variables' as *;
@use 'styles/breakpoints' as *;

.walletModalWrapper {
max-height: 80vh;
max-height: 95vh;
overflow: auto;
}
.blurb {
Expand Down Expand Up @@ -94,6 +95,16 @@
}

.optionCardIconfiy {
margin: 12px;

@include media('screen', '<tablet') {
margin: 8px;
}

@media screen and (max-height: 600px) {
margin: 8px;
}

&:hover {
cursor: pointer;
}
Expand All @@ -106,6 +117,16 @@
margin: auto;
border-radius: 24px;

@include media('screen', '<tablet') {
width: 80px;
height: 80px;
}

@media screen and (max-height: 600px) {
width: 80px;
height: 80px;
}

&:hover {
border-color: $primary;
}
Expand Down
Loading