diff --git a/app/screens/create_or_edit_channel/channel_info_form.tsx b/app/screens/create_or_edit_channel/channel_info_form.tsx index 6267f3a83..0ce2e2873 100644 --- a/app/screens/create_or_edit_channel/channel_info_form.tsx +++ b/app/screens/create_or_edit_channel/channel_info_form.tsx @@ -231,7 +231,9 @@ export default function ChannelInfoForm({ const spaceOnTop = otherElementsSize - scrollPosition - AUTOCOMPLETE_ADJUST; const spaceOnBottom = (workingSpace + scrollPosition) - (otherElementsSize + headerFieldHeight + BOTTOM_AUTOCOMPLETE_SEPARATION); - const autocompletePosition = spaceOnBottom > spaceOnTop ? (otherElementsSize + headerFieldHeight) - scrollPosition : (workingSpace + scrollPosition + AUTOCOMPLETE_ADJUST + keyboardOverlap) - otherElementsSize; + const autocompletePosition = spaceOnBottom > spaceOnTop ? + (otherElementsSize + headerFieldHeight) - scrollPosition : + (workingSpace + scrollPosition + AUTOCOMPLETE_ADJUST + keyboardOverlap) - otherElementsSize; const autocompleteAvailableSpace = spaceOnBottom > spaceOnTop ? spaceOnBottom : spaceOnTop; const growDown = spaceOnBottom > spaceOnTop; diff --git a/eslint/eslint-mattermost.json b/eslint/eslint-mattermost.json index 664a9a97b..1c5007b81 100644 --- a/eslint/eslint-mattermost.json +++ b/eslint/eslint-mattermost.json @@ -185,7 +185,7 @@ ], "multiline-ternary": [ 1, - "never" + "always-multiline" ], "new-cap": 2, "new-parens": 2,