Skip to content

Commit

Permalink
Merge pull request #270 from AppQuality/develop
Browse files Browse the repository at this point in the history
Modal responsive improvements
  • Loading branch information
cannarocks authored Sep 13, 2023
2 parents 789a17e + 1be7e3d commit 7b40cd5
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 7b40cd5

Please sign in to comment.