From 5ed8c78c88be322575503cf44b2e719c9f45693f Mon Sep 17 00:00:00 2001 From: Tassoman Date: Sat, 7 Oct 2023 13:26:14 +0000 Subject: [PATCH] added vertical scroll feature to the autosuggest component --- src/actions/compose.ts | 6 +++--- src/features/compose/editor/plugins/autosuggest-plugin.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/actions/compose.ts b/src/actions/compose.ts index b781b99b51..c71524195c 100644 --- a/src/actions/compose.ts +++ b/src/actions/compose.ts @@ -524,7 +524,7 @@ const fetchComposeSuggestionsAccounts = throttle((dispatch, getState, composeId, params: { q: token.slice(1), resolve: false, - limit: 4, + limit: 10, }, }).then(response => { dispatch(importFetchedAccounts(response.data)); @@ -538,7 +538,7 @@ const fetchComposeSuggestionsAccounts = throttle((dispatch, getState, composeId, const fetchComposeSuggestionsEmojis = (dispatch: AppDispatch, getState: () => RootState, composeId: string, token: string) => { const state = getState(); - const results = emojiSearch(token.replace(':', ''), { maxResults: 5 }, state.custom_emojis); + const results = emojiSearch(token.replace(':', ''), { maxResults: 10 }, state.custom_emojis); dispatch(readyComposeSuggestionsEmojis(composeId, token, results)); }; @@ -565,7 +565,7 @@ const fetchComposeSuggestionsTags = (dispatch: AppDispatch, getState: () => Root }), params: { q: token.slice(1), - limit: 4, + limit: 10, type: 'hashtags', }, }).then(response => { diff --git a/src/features/compose/editor/plugins/autosuggest-plugin.tsx b/src/features/compose/editor/plugins/autosuggest-plugin.tsx index 34b929d132..33ab39b0f3 100644 --- a/src/features/compose/editor/plugins/autosuggest-plugin.tsx +++ b/src/features/compose/editor/plugins/autosuggest-plugin.tsx @@ -538,7 +538,7 @@ const AutosuggestPlugin = ({ ? ReactDOM.createPortal(