From ee58f680e8fe4b0b8f385345e791f51f00f41820 Mon Sep 17 00:00:00 2001 From: Claire Date: Tue, 6 Jun 2023 11:05:25 +0200 Subject: [PATCH] [Glitch] Fix autocomplete suggestions being cut off in compose form Port 683373285264c92cb0ed08c73e460ec471479ec3 to glitch-soc Signed-off-by: Claire --- .../compose/components/compose_form.jsx | 26 +++++++++---------- .../glitch/styles/components/columns.scss | 2 +- .../styles/components/single_column.scss | 1 - 3 files changed, 14 insertions(+), 15 deletions(-) diff --git a/app/javascript/flavours/glitch/features/compose/components/compose_form.jsx b/app/javascript/flavours/glitch/features/compose/components/compose_form.jsx index 9b239a2d7b..47cf124932 100644 --- a/app/javascript/flavours/glitch/features/compose/components/compose_form.jsx +++ b/app/javascript/flavours/glitch/features/compose/components/compose_form.jsx @@ -369,20 +369,20 @@ class ComposeForm extends ImmutablePureComponent { - -
- 0)} - spoiler={spoilersAlwaysOn ? (spoilerText && spoilerText.length > 0) : spoiler} - /> -
- +
+ 0)} + spoiler={spoilersAlwaysOn ? (spoilerText && spoilerText.length > 0) : spoiler} + /> +
+ +
diff --git a/app/javascript/flavours/glitch/styles/components/columns.scss b/app/javascript/flavours/glitch/styles/components/columns.scss index a27bfc7fef..cffafffa78 100644 --- a/app/javascript/flavours/glitch/styles/components/columns.scss +++ b/app/javascript/flavours/glitch/styles/components/columns.scss @@ -1236,10 +1236,10 @@ $ui-header-height: 55px; .compose-form__highlightable { display: flex; flex-direction: column; - overflow: hidden; flex: 0 1 auto; border-radius: 4px; transition: box-shadow 300ms linear; + min-height: 0; &.active { transition: none; diff --git a/app/javascript/flavours/glitch/styles/components/single_column.scss b/app/javascript/flavours/glitch/styles/components/single_column.scss index df3bcdce22..87fdd170d3 100644 --- a/app/javascript/flavours/glitch/styles/components/single_column.scss +++ b/app/javascript/flavours/glitch/styles/components/single_column.scss @@ -43,7 +43,6 @@ .compose-form { flex: 1; - overflow-y: hidden; display: flex; flex-direction: column; min-height: 310px;