Revert "FIX: Composer height issue in Safari on iOS 15 (#14282)" (#14847)

This reverts commit 0dab1634b0.
This commit is contained in:
Penar Musaraj 2021-11-09 13:10:07 -05:00 committed by GitHub
parent cb997be513
commit ce91bf0775
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 18 deletions

View File

@ -99,9 +99,6 @@ function positioningWorkaround($fixedElement) {
positioningWorkaround.blur = function (evt) {
if (workaroundActive) {
document.body.classList.remove("ios-safari-composer-hacks");
if (caps.isIOS15Safari) {
document.body.classList.remove("ios-safari-15-hack");
}
window.scrollTo(0, originalScrollTop);
if (evt && evt.target) {
@ -192,9 +189,6 @@ function positioningWorkaround($fixedElement) {
}
document.body.classList.add("ios-safari-composer-hacks");
if (caps.isIOS15Safari) {
document.body.classList.add("ios-safari-15-hack");
}
window.scrollTo(0, 0);
if (!iOSWithVisualViewport()) {

View File

@ -43,11 +43,6 @@ export default {
(/iPhone|iPod/.test(navigator.userAgent) || caps.isIpadOS) &&
!window.MSStream;
caps.isIOS15Safari =
caps.isIOS &&
/Version\/15/.test(navigator.userAgent) &&
!/DiscourseHub/.test(navigator.userAgent);
caps.hasContactPicker =
"contacts" in navigator && "ContactsManager" in window;

View File

@ -32,13 +32,6 @@
padding-bottom: 0px;
}
// iOS 15 Safari has a floating address bar that displays above the composer submit bar
// we cannot detect its preseence, so we need to add extra padding
// Apple says it's a known issue, see https://bugs.webkit.org/show_bug.cgi?id=229876
.keyboard-visible body.ios-safari-15-hack &.open .reply-area {
padding-bottom: 45px;
}
.reply-to {
margin: 5px 0;
.reply-details {