From 794eeb232380999f5e14f2ae7660871919be00cd Mon Sep 17 00:00:00 2001 From: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com> Date: Tue, 30 Apr 2024 17:53:02 -0700 Subject: [PATCH] Fix right click in expanded composer --- 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; } }