mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 04:42:55 +08:00
UX: prevent devices from miscalculating fullscreen composer height
Fixes issue seen in some Chromebooks that flip between tablet and regular notebook window size
This commit is contained in:
parent
7e52106812
commit
2a0a689442
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user