Skip to content

Commit

Permalink
fix: Scrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
ChefMomota committed Jul 25, 2023
1 parent 71443fa commit a9fc723
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const RevenueSharing: React.FunctionComponent<React.PropsWithChildren<RevenueSha
)

return (
<Card isActive>
<Card isActive mb={['24px', '24px', '24px', '0']}>
<Box padding={16}>
<Text fontSize={12} bold color="secondary" textTransform="uppercase">
{t('revenue sharing')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import { DeserializedLockedVaultUser } from 'state/types'

const Container = styled(ModalContainer)`
width: 100%;
max-height: '90vh';
overflow: 'hidden';
overflow: hidden;
max-height: 90vh;
${({ theme }) => theme.mediaQueries.md} {
width: 375px;
Expand All @@ -32,7 +32,12 @@ const Container = styled(ModalContainer)`
const ScrollableContainer = styled(Flex)`
flex-direction: column;
height: auto;
max-height: 63vh;
${({ theme }) => theme.mediaQueries.xs} {
max-height: 100vh;
}
${({ theme }) => theme.mediaQueries.md} {
max-height: none;
}
`

interface BenefitsModalProps {
Expand All @@ -57,7 +62,7 @@ const BenefitsModal: React.FunctionComponent<React.PropsWithChildren<BenefitsMod
</Text>
<ModalCloseButton onDismiss={onDismiss} />
</RowBetween>
<ModalBody mt="16px">
<ModalBody mt="16px" width="100%" style={{ maxHeight: 'calc(100vh - 260px)' }}>
<ScrollableContainer px="24px">
<SharingPoolNameCell />
<LockedBenefits />
Expand Down

0 comments on commit a9fc723

Please sign in to comment.