From 2a0a6894426fd124556cafd9f992a73010e90b7f Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Mon, 1 Jun 2020 22:24:16 -0400 Subject: [PATCH] UX: prevent devices from miscalculating fullscreen composer height Fixes issue seen in some Chromebooks that flip between tablet and regular notebook window size --- app/assets/stylesheets/desktop/compose.scss | 1 + 1 file changed, 1 insertion(+) 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; }