Commit 7b758342 authored by hewenhao's avatar hewenhao

feat: enhance

parent 43a647e3
.wrap { .wrap {
background: #2B3347; background: #2B3347;
padding-bottom: env(safe-area-inset-bottom);
position: fixed; position: fixed;
z-index: 2000; z-index: 2000;
left: 0; left: 0;
...@@ -8,6 +7,13 @@ ...@@ -8,6 +7,13 @@
bottom: 0; bottom: 0;
} }
@supports (padding-bottom: constant(safe-area-inset-bottom)) or (padding-bottom: env(safe-area-inset-bottom)) {
.wrap {
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom : env(safe-area-inset-bottom);
}
}
.inner { .inner {
display: flex; display: flex;
height: 56PX; height: 56PX;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
z-index: 2000; z-index: 2000;
} }
@supports (bottom: constant(safe-area-inset-bottom)) or (bottom: env(safe-area-inset-bottom)) { @supports (margin-bottom: constant(safe-area-inset-bottom)) or (margin-bottom: env(safe-area-inset-bottom)) {
.shortcut { .shortcut {
margin-bottom: constant(safe-area-inset-bottom); margin-bottom: constant(safe-area-inset-bottom);
margin-bottom: env(safe-area-inset-bottom); margin-bottom: env(safe-area-inset-bottom);
......
...@@ -9,6 +9,9 @@ ...@@ -9,6 +9,9 @@
padding-bottom: 56PX; padding-bottom: 56PX;
} }
.gap { @supports (height: constant(safe-area-inset-bottom)) or (height: env(safe-area-inset-bottom)) {
height: env(safe-area-inset-bottom); .gap {
height: constant(safe-area-inset-bottom);
height : env(safe-area-inset-bottom);
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment