Skip to content

Commit

Permalink
added dvh and dvw to modals
Browse files Browse the repository at this point in the history
  • Loading branch information
drB-dotjpg committed Jan 5, 2024
1 parent cffb6a6 commit 3775bb9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/styles/Modal.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export const modalStyles: CSSResult = css`
position: fixed;
top: 0;
left: 0;
width: calc(100vw - var(--padding) * 2);
height: calc(100vh - var(--padding) * 2);
width: calc(100dvw - var(--padding) * 2);
height: calc(100dvh - var(--padding) * 2);
padding: var(--padding);
background: var(--bg);
color: var(--color);
Expand Down Expand Up @@ -70,8 +70,8 @@ export const modalStyles: CSSResult = css`
@media only screen and (max-width: 34rem) {
.modal {
width: 100vw;
height: 100vh;
width: 100dvw;
height: 100dvh;
padding: 0;
}
Expand Down

0 comments on commit 3775bb9

Please sign in to comment.