Skip to content

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

UX: peek-mode composer fixes for 13in tablets (#38533)

chapoi8fe573cd9e79
diff --git a/app/assets/stylesheets/common/base/compose.scss b/app/assets/stylesheets/common/base/compose.scss
index 0f4170081a6..5d23db5d0ec 100644
--- a/app/assets/stylesheets/common/base/compose.scss
+++ b/app/assets/stylesheets/common/base/compose.scss
@@ -852,11 +852,13 @@ html.composer-open:not(.has-full-page-chat) {
// especially while the software keyboard is visible, so we top-anchor it here
// and shift it using transform
.ipados-device {
- #reply-control {
- // the two properties below are equivalent to bottom: 0
- top: calc(var(--composer-vh, 1vh) * 100);
- transform: translateY(-100%);
- bottom: unset;
+ body:not(.peek-mode-active) {
+ #reply-control {
+ // the two properties below are equivalent to bottom: 0
+ top: calc(var(--composer-vh, 1vh) * 100);
+ transform: translateY(-100%);
+ bottom: unset;
+ }
}
}
diff --git a/themes/horizon/scss/composer-peek-mode.scss b/themes/horizon/scss/composer-peek-mode.scss
index 4ed366442d8..afcbe5e439c 100644
--- a/themes/horizon/scss/composer-peek-mode.scss
+++ b/themes/horizon/scss/composer-peek-mode.scss
@@ -34,7 +34,6 @@
top: var(--header-offset);
bottom: var(--main-grid-gap);
left: unset;
- height: unset;
max-width: 36.5vw;
}
@@ -60,6 +59,12 @@
height: unset;
}
}
+
+ &:not(.keyboard-visible) {
+ #reply-control:not(.fullscreen).hide-preview {
+ height: unset;
+ }
+ }
}
}
}