Skip to content

Commit

Permalink
Merge pull request #269 from AppQuality/fix-mobile-modals
Browse files Browse the repository at this point in the history
πŸ› fix(modals/index.tsx): adjust styles for isExtraLarge prop in UgModal component
  • Loading branch information
cannarocks authored Sep 13, 2023
2 parents cf6a549 + edb623d commit 1be7e3d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/stories/modals/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ const UgModalBody = styled(ModalBody)`
`;

const UgModal = styled(ZendeskModal)<ModalArgs>`
${({ isExtraLarge }) => isExtraLarge && "height: 90%; width: 90%;"}
${({ isExtraLarge }) => isExtraLarge && "height: 90%; max-height: 90%; width: 90%;"}
@media (max-width: ${({ theme }) => theme.breakpoints.sm}) {
top: 0;
height: 100%;
left: 0;
width: 100%;
height: 100%;
max-height: 100%;
}
`;

Expand Down

0 comments on commit 1be7e3d

Please sign in to comment.