FIX: correctly account for ipad footer nav height (#20334)

This code also removes duplicated code in chat which doesn’t seem necessary anymore.
This commit is contained in:
Joffrey JAFFEUX 2023-02-16 16:49:17 +01:00 committed by GitHub
parent 75ae70c27c
commit 7391f8e077
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 18 deletions

View File

@ -67,6 +67,7 @@ body {
background-attachment: fixed; background-attachment: fixed;
background-size: cover; background-size: cover;
min-height: 100%; min-height: 100%;
box-sizing: border-box;
@include clearfix; @include clearfix;
} }

View File

@ -606,7 +606,8 @@ html.has-full-page-chat {
#main-outlet-wrapper { #main-outlet-wrapper {
// restrict the row height, including when virtual keyboard is open // restrict the row height, including when virtual keyboard is open
grid-template-rows: calc( grid-template-rows: calc(
var(--chat-vh, 1vh) * 100 - var(--header-offset) var(--chat-vh, 1vh) * 100 - var(--header-offset, 0px) -
var(--footer-nav-height, 0px)
); );
.sidebar-wrapper { .sidebar-wrapper {
// prevents sidebar from overflowing behind the virtual keyboard // prevents sidebar from overflowing behind the virtual keyboard
@ -614,16 +615,6 @@ html.has-full-page-chat {
} }
} }
// iPad webview
.footer-nav-ipad {
#main-outlet-wrapper {
// restrict the row height, including when virtual keyboard is open
grid-template-rows: calc(
var(--chat-vh, 1vh) * 100 - calc(var(--header-offset))
);
}
}
.full-page-chat, .full-page-chat,
.chat-live-pane, .chat-live-pane,
#main-outlet { #main-outlet {

View File

@ -92,13 +92,6 @@ html.has-full-page-chat {
} }
} }
html.has-full-page-chat body {
#main-outlet-wrapper {
// restricts the height of the page
grid-template-rows: calc(var(--chat-vh, 1vh) * 100 - var(--header-offset));
}
}
.chat-message-separator { .chat-message-separator {
margin-left: 0; margin-left: 0;
} }