Middle Column: Add safe zone on iPhone X (#1380)

This commit is contained in:
Alexander Zinchuk 2021-08-13 17:45:49 +03:00
parent f0d8c93029
commit aac16ec30d
3 changed files with 12 additions and 1 deletions

View File

@ -249,6 +249,12 @@
}
}
@supports (padding-bottom: env(safe-area-inset-bottom)) {
&:not(.no-composer) {
padding-bottom: env(safe-area-inset-bottom);
}
}
&::before {
content: "";
position: absolute;

View File

@ -29,6 +29,11 @@
padding-left: 1rem;
padding-right: 0.5rem;
@supports (padding-bottom: env(safe-area-inset-bottom)) {
padding-bottom: env(safe-area-inset-bottom);
height: calc(3.5rem + env(safe-area-inset-bottom));
}
> .counter {
flex: 1;
color: var(--color-text-secondary);

View File

@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="Telegram WebZ">
<meta name="application-name" content="Telegram WebZ">