[new feature] NumberKeyboard: add safe-area-inset-bottom prop (#3173)

This commit is contained in:
neverland
2019-04-18 19:59:33 +08:00
committed by GitHub
parent 37518a2fb1
commit 49f4be180f
4 changed files with 10 additions and 2 deletions
+6 -1
View File
@@ -35,8 +35,8 @@
}
&__sidebar {
top: 0;
right: 0;
bottom: 0;
width: 25%;
position: absolute;
height: @number-keyboard-key-height * 4;
@@ -47,6 +47,11 @@
padding-right: 25%;
}
}
&--safe-area-inset-bottom {
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
}
}
.van-key {