Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/Tencent/vConsole into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Maiz committed Jan 16, 2019
2 parents 3ed770b + 88cd70e commit 9e4cd67
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/demo1.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, viewport-fit=cover">
<title>vConsole/Demo1</title>
<link href="./lib/weui.min.css" rel="stylesheet"/>
<link href="./lib/demo.css" rel="stylesheet"/>
Expand All @@ -12,7 +12,7 @@

<!-- 引入vConsole的JS库 -->
<script src="../dist/vconsole.min.js"></script>

</head>
<body ontouchstart>
<div class="page">
Expand Down
8 changes: 8 additions & 0 deletions src/core/core.less
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@
right: 0;
bottom: 40em / @font;
-webkit-overflow-scrolling: touch;
margin-bottom: constant(safe-area-inset-bottom);
margin-bottom: env(safe-area-inset-bottom);
}
.vc-content.vc-has-topbar {
top: 71em / @font;
Expand Down Expand Up @@ -514,6 +516,12 @@
border: none;
}
}
@supports (bottom: constant(safe-area-inset-bottom)) or (bottom: env(safe-area-inset-bottom)) {
.vc-toolbar {
bottom: constant(safe-area-inset-bottom);
bottom: env(safe-area-inset-bottom);
}
}

}

Expand Down

0 comments on commit 9e4cd67

Please sign in to comment.