Skip to content

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

UX: prevent devices from miscalculating fullscreen composer height

Penar Musaraj2a0a6894426f
diff --git a/app/assets/stylesheets/desktop/compose.scss b/app/assets/stylesheets/desktop/compose.scss
index ddd914a98a9..9fb8c27a0a5 100644
--- a/app/assets/stylesheets/desktop/compose.scss
+++ b/app/assets/stylesheets/desktop/compose.scss
@@ -247,6 +247,7 @@ a.toggle-preview {
&.fullscreen {
// important needed because of inline styles when height is changed manually with grippie
height: 100vh !important;
+ max-height: 100%; // prevents devices from miscalculating using vh
@supports (--custom: property) {
height: calc(var(--composer-vh, 1vh) * 100) !important;
}