From 78cacf7cccb3c59485a3dc123e81a9d90e9d8e4c Mon Sep 17 00:00:00 2001 From: automated-signal <37887102+automated-signal@users.noreply.github.com> Date: Tue, 30 Apr 2024 20:03:47 -0500 Subject: [PATCH] Fix right click in expanded composer Co-authored-by: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com> --- stylesheets/components/CompositionInput.scss | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/stylesheets/components/CompositionInput.scss b/stylesheets/components/CompositionInput.scss index 2ebf613f5c..63acbe7a89 100644 --- a/stylesheets/components/CompositionInput.scss +++ b/stylesheets/components/CompositionInput.scss @@ -98,11 +98,16 @@ } &--large { - max-height: calc(212px - 2 * $border-size); - min-height: calc(212px - 2 * $border-size); + $largeHeight: calc(212px - 2 * $border-size); + $largeHeightContentBox: calc($largeHeight - 2 * $padding-top); + + // Explicit height needed to allow `height: 100%` on children + height: $largeHeight; + max-height: $largeHeight; + min-height: $largeHeight; .DraftEditor-root { - height: calc(212px - 2 * $padding-top - 2 * $border-size); + height: $largeHeightContentBox; } }