fix: fix position of toast/snackbar for bottom nav (#2213)
This commit is contained in:
parent
00b6d31f0c
commit
85bc6ba372
|
@ -38,6 +38,7 @@
|
||||||
--nav-bottom: 0px;
|
--nav-bottom: 0px;
|
||||||
--main-content-pad-top: 0px;
|
--main-content-pad-top: 0px;
|
||||||
--main-content-pad-bottom: var(--main-content-pad-vertical);
|
--main-content-pad-bottom: var(--main-content-pad-vertical);
|
||||||
|
--toast-gap-bottom: var(--nav-total-height);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
|
@ -21,14 +21,14 @@
|
||||||
<style>
|
<style>
|
||||||
.snackbar-modal {
|
.snackbar-modal {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 0;
|
bottom: var(--toast-gap-bottom);
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
transition: transform 333ms ease-in-out;
|
transition: transform 333ms ease-in-out;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
z-index: 99000;
|
z-index: 90; /* lower than the Nav.html .main-nav which is 100 */
|
||||||
transform: translateY(100%);
|
transform: translateY(100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<style>
|
<style>
|
||||||
.toast-modal {
|
.toast-modal {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 40px;
|
bottom: calc(40px + var(--toast-gap-bottom));
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
// Used for moving the nav bar to the bottom
|
// Used for moving the nav bar to the bottom
|
||||||
--nav-top: 0px;
|
--nav-top: 0px;
|
||||||
--nav-bottom: initial;
|
--nav-bottom: initial;
|
||||||
|
--toast-gap-bottom: 0px; // used to position the Toast and Snackbar above the bottom nav
|
||||||
|
|
||||||
//
|
//
|
||||||
// focus outline
|
// focus outline
|
||||||
|
|
Loading…
Reference in a new issue