Skip to content

Commit

Permalink
fix: 优化footer组件固定底部在刘海屏上的体验
Browse files Browse the repository at this point in the history
  • Loading branch information
uxsi committed Jan 16, 2020
1 parent 0c2c0c1 commit 1034346
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
12 changes: 7 additions & 5 deletions dist/style/weui.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/style/weui.min.css

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions src/style/widget/weui-footer/weui-footer.less
Expand Up @@ -27,13 +27,15 @@
}
.weui-footer_fixed-bottom{
position: fixed;
bottom: 16px;
bottom: calc(16px ~"+ constant(safe-area-inset-bottom)");
bottom: calc(16px ~"+ env(safe-area-inset-bottom)");
bottom:0;
left: 0;
right: 0;
padding-top:16px;
padding-bottom:16px;
padding-bottom:calc(16px ~"+ constant(safe-area-inset-bottom)");
padding-bottom:calc(16px ~"+ env(safe-area-inset-bottom)");
left: constant(safe-area-inset-left);
left: env(safe-area-inset-left);
right: 0;
right: constant(safe-area-inset-right);
right: env(safe-area-inset-right);
}
Expand Down

0 comments on commit 1034346

Please sign in to comment.