@@ -239,8 +239,8 @@ const StyledDialog = styled.div<StyledDialogProps>`
239
239
width: ${ props => widthMap [ props . width ?? ( 'xlarge' as const ) ] } ;
240
240
height: ${ props => heightMap [ props . height ?? ( 'auto' as const ) ] } ;
241
241
min-width: 296px;
242
- max-width: calc(100vw - 64px);
243
- max-height: calc(100vh - 64px);
242
+ max-width: calc(100dvw - 64px);
243
+ max-height: calc(100dvh - 64px);
244
244
border-radius: 12px;
245
245
opacity: 1;
246
246
@@ -257,7 +257,7 @@ const StyledDialog = styled.div<StyledDialogProps>`
257
257
}
258
258
259
259
&[data-position-regular='left'] {
260
- height: 100vh ;
260
+ height: 100dvh ;
261
261
max-height: unset;
262
262
border-radius: var(--borderRadius-large, 0.75rem);
263
263
border-top-left-radius: 0;
@@ -269,7 +269,7 @@ const StyledDialog = styled.div<StyledDialogProps>`
269
269
}
270
270
271
271
&[data-position-regular='right'] {
272
- height: 100vh ;
272
+ height: 100dvh ;
273
273
max-height: unset;
274
274
border-radius: var(--borderRadius-large, 0.75rem);
275
275
border-top-right-radius: 0;
@@ -288,10 +288,10 @@ const StyledDialog = styled.div<StyledDialogProps>`
288
288
}
289
289
290
290
&[data-position-narrow='bottom'] {
291
- width: 100vw ;
291
+ width: 100dvw ;
292
292
height: auto;
293
- max-width: 100vw ;
294
- max-height: calc(100vh - 64px);
293
+ max-width: 100dvw ;
294
+ max-height: calc(100dvh - 64px);
295
295
border-radius: var(--borderRadius-large, 0.75rem);
296
296
border-bottom-right-radius: 0;
297
297
border-bottom-left-radius: 0;
@@ -303,9 +303,9 @@ const StyledDialog = styled.div<StyledDialogProps>`
303
303
304
304
&[data-position-narrow='fullscreen'] {
305
305
width: 100%;
306
- max-width: 100vw ;
306
+ max-width: 100dvw ;
307
307
height: 100%;
308
- max-height: 100vh ;
308
+ max-height: 100dvh ;
309
309
border-radius: unset !important;
310
310
flex-grow: 1;
311
311
0 commit comments