Permalink
Browse files

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

[WIP] Respect safe area constraints on webkit
  • Loading branch information...
lorenzhs committed Oct 8, 2018
2 parents 8ab9511 + b6875e6 commit a5ad0ca1d88373525daa6d3c34da49ff807edcc7
Showing with 5 additions and 1 deletion.
  1. +4 −0 css/glowingbear.css
  2. +1 −1 index.html
View
@@ -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
@@ -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">

0 comments on commit a5ad0ca

Please sign in to comment.