Skip to content

Commit

Permalink
fix(action-sheet): use clamp instead of max for sizing action sheet c…
Browse files Browse the repository at this point in the history
…ontainer
  • Loading branch information
joneff authored and Juveniel committed Oct 20, 2022
1 parent 0dd6b8f commit e2c9af9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/default/scss/action-sheet/_layout.scss
Expand Up @@ -4,8 +4,8 @@
.k-actionsheet-container {
width: 100%;
height: 100%;
max-width: unquote("max(100%, 100vw)");
max-height: unquote("max(100%, 100vh)");
max-width: clamp(100vw, 100%, 100%);
max-height: clamp(100vh, 100%, 100%);
position: fixed;
top: 0;
left: 0;
Expand Down
5 changes: 3 additions & 2 deletions packages/fluent/scss/action-sheet/_layout.scss
Expand Up @@ -5,8 +5,9 @@
.k-actionsheet-container {
width: 100%;
height: 100%;
max-width: unquote("max(100%, 100vw)");
max-height: unquote("max(100%, 100vh)");
// TODO: use max when we drop less themes
max-width: clamp(100vw, 100%, 100%);
max-height: clamp(100vh, 100%, 100%);
position: fixed;
top: 0;
left: 0;
Expand Down

0 comments on commit e2c9af9

Please sign in to comment.