Skip to content

Commit

Permalink
fix: snackbar: handle snackbar width on different screen sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
ychhabra-eightfold committed May 13, 2022
1 parent 982eff4 commit 5b96872
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/Snackbar/snackbar.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,19 @@
animation: slideUpIn $motion-duration-extra-fast $motion-easing-easeinout 0s
forwards;
margin-bottom: $space-s;

@media (max-width: $small-screen-size) {
max-width: 90vw;
}

@media (min-width: $small-screen-size) and (max-width: $medium-screen-size) {
max-width: min(80vw, 640px);
}
}

.snackbar-container {
position: fixed;
width: fit-content;
z-index: $z-index-500;

&.top-center,
Expand Down

0 comments on commit 5b96872

Please sign in to comment.