aboutsummaryrefslogtreecommitdiff
path: root/src/components/settings_modal/settings_modal.scss
diff options
context:
space:
mode:
authoreugenijm <eugenijm@protonmail.com>2020-07-23 12:20:48 +0300
committereugenijm <eugenijm@protonmail.com>2020-07-23 16:36:21 +0300
commit77d65d6cecfae1bdbf5e5b7d8c882d39846b91f1 (patch)
tree8eb339ca8b0bb16d5282f728c1f80b905aceae59 /src/components/settings_modal/settings_modal.scss
parent2298ad0011e8507a138d967ed142641981e1e297 (diff)
Ensures the minimized modal is always 50px above the mobile browser bottom bar regardless of whether or not it is visible.
Diffstat (limited to 'src/components/settings_modal/settings_modal.scss')
-rw-r--r--src/components/settings_modal/settings_modal.scss3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/settings_modal/settings_modal.scss b/src/components/settings_modal/settings_modal.scss
index cdb32fd7..90446b36 100644
--- a/src/components/settings_modal/settings_modal.scss
+++ b/src/components/settings_modal/settings_modal.scss
@@ -15,6 +15,9 @@
transform: translateY(calc(((100vh - 100%) / 2 + 100%) - 50px));
@media all and (max-width: 800px) {
+ /* For mobile, the modal takes 100% of the available screen.
+ This ensures the minimized modal is always 50px above the browser bottom bar regardless of whether or not it is visible.
+ */
transform: translateY(calc(100% - 50px));
}
}