[Glitch] Fix autocomplete suggestions being cut off in compose form

Port 6833732852 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Claire 2023-06-06 11:05:25 +02:00
parent 6269a5336f
commit ee58f680e8
3 changed files with 14 additions and 15 deletions

View file

@ -369,20 +369,20 @@ class ComposeForm extends ImmutablePureComponent {
<PollFormContainer /> <PollFormContainer />
</div> </div>
</AutosuggestTextarea> </AutosuggestTextarea>
</div>
<div className='compose-form__buttons-wrapper'> <div className='compose-form__buttons-wrapper'>
<OptionsContainer <OptionsContainer
advancedOptions={advancedOptions} advancedOptions={advancedOptions}
disabled={isSubmitting} disabled={isSubmitting}
onToggleSpoiler={spoilersAlwaysOn ? null : onChangeSpoilerness} onToggleSpoiler={spoilersAlwaysOn ? null : onChangeSpoilerness}
onUpload={onPaste} onUpload={onPaste}
isEditing={isEditing} isEditing={isEditing}
sensitive={sensitive || (spoilersAlwaysOn && spoilerText && spoilerText.length > 0)} sensitive={sensitive || (spoilersAlwaysOn && spoilerText && spoilerText.length > 0)}
spoiler={spoilersAlwaysOn ? (spoilerText && spoilerText.length > 0) : spoiler} spoiler={spoilersAlwaysOn ? (spoilerText && spoilerText.length > 0) : spoiler}
/> />
<div className='character-counter__wrapper'> <div className='character-counter__wrapper'>
<CharacterCounter text={countText} max={maxChars} /> <CharacterCounter text={countText} max={maxChars} />
</div>
</div> </div>
</div> </div>

View file

@ -1236,10 +1236,10 @@ $ui-header-height: 55px;
.compose-form__highlightable { .compose-form__highlightable {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow: hidden;
flex: 0 1 auto; flex: 0 1 auto;
border-radius: 4px; border-radius: 4px;
transition: box-shadow 300ms linear; transition: box-shadow 300ms linear;
min-height: 0;
&.active { &.active {
transition: none; transition: none;

View file

@ -43,7 +43,6 @@
.compose-form { .compose-form {
flex: 1; flex: 1;
overflow-y: hidden;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
min-height: 310px; min-height: 310px;