Merge pull request #1025 from bl1nk/respect-webkit-safe-area

[WIP] Respect safe area constraints on webkit
This commit is contained in:
Lorenz Hübschle-Schneider 2018-10-08 10:20:25 +02:00 committed by GitHub
commit a5ad0ca1d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -223,7 +223,9 @@ input[type=text], input[type=password], #sendMessage {
overflow-y: auto;
overflow-x: hidden;
padding-top: 35px; /* topbar */
padding-right: env(safe-area-inset-right);
padding-bottom: 1px; /* need to force a padding here */
padding-left: env(safe-area-inset-left);
font-size: smaller;
transition:0.2s ease-in-out;
z-index: 2;
@ -333,6 +335,7 @@ input[type=text], input[type=password], #sendMessage {
.content {
height: 100%;
min-height: 100%;
padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
#bufferlines {
@ -388,6 +391,7 @@ td.time {
bottom: 0;
height: 35px;
width: 100%;
margin-bottom: env(safe-area-inset-bottom); /* margin for home-indicator on iPhone X */
-webkit-transition:0.2s ease-in-out all;
transition:0.2s ease-in-out all;
z-index: 1;

View File

@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">