Skip to content

A platform for community discussion. Free, open, simple.

UX: iPad footer nav now included in header offset (#21699)

Kris5dd89e0b704a
diff --git a/app/assets/stylesheets/common/base/menu-panel.scss b/app/assets/stylesheets/common/base/menu-panel.scss
index 3c4140b4d56..c34fca2bf75 100644
--- a/app/assets/stylesheets/common/base/menu-panel.scss
+++ b/app/assets/stylesheets/common/base/menu-panel.scss
@@ -540,13 +540,6 @@
}
}
-body.footer-nav-ipad {
- .hamburger-panel .revamped,
- .menu-panel.slide-in {
- margin-top: var(--footer-nav-height);
- }
-}
-
.hamburger-panel .menu-panel.slide-in {
left: 0;
diff --git a/app/assets/stylesheets/common/base/sidebar.scss b/app/assets/stylesheets/common/base/sidebar.scss
index d05b39de0ff..b4e9d22121c 100644
--- a/app/assets/stylesheets/common/base/sidebar.scss
+++ b/app/assets/stylesheets/common/base/sidebar.scss
@@ -41,14 +41,6 @@
var(--composer-vh, var(--1dvh)) * 100 - var(--header-offset, 0px)
);
- .footer-nav-ipad & {
- top: calc(var(--header-offset) + var(--footer-nav-height));
- height: calc(
- var(--composer-vh, var(--1dvh)) * 100 - var(--header-offset, 0px) -
- var(--footer-nav-height, 0px)
- );
- }
-
align-self: start;
overflow-y: auto;
diff --git a/app/assets/stylesheets/common/base/topic.scss b/app/assets/stylesheets/common/base/topic.scss
index 7eb45d81e99..b1cfef207e7 100644
--- a/app/assets/stylesheets/common/base/topic.scss
+++ b/app/assets/stylesheets/common/base/topic.scss
@@ -50,9 +50,6 @@ $topic-progress-height: 42px;
align-self: start;
@include sticky;
top: calc(var(--header-offset, 60px) + 2em);
- .footer-nav-ipad & {
- top: calc(var(--header-offset, 60px) + var(--footer-nav-height) + 2em);
- }
margin-left: 1em;
z-index: z("timeline");
diff --git a/plugins/chat/assets/stylesheets/common/chat-height-mixin.scss b/plugins/chat/assets/stylesheets/common/chat-height-mixin.scss
index 5ee2368f770..0dd66c83f4a 100644
--- a/plugins/chat/assets/stylesheets/common/chat-height-mixin.scss
+++ b/plugins/chat/assets/stylesheets/common/chat-height-mixin.scss
@@ -20,20 +20,9 @@
.footer-nav-ipad & {
height: calc(
var(--chat-vh, 1vh) * 100 - var(--header-offset, 0px) -
- var(--footer-nav-height, 0px) - var(--chat-draft-header-height, 0px) -
+ var(--chat-draft-header-height, 0px) -
var(--chat-direct-message-creator-height, 0px) -
var(--composer-height, 0px)
);
}
-
- // ipad with keyboard opened
- .keyboard-visible & {
- .footer-nav-ipad & {
- height: calc(
- var(--chat-vh, 1vh) * 100 - var(--header-offset, 0px) -
- var(--footer-nav-height, 0px) - var(--chat-draft-header-height, 0px) -
- var(--chat-direct-message-creator-height, 0px)
- );
- }
- }
}