added vertical scroll feature to the autosuggest component

This commit is contained in:
Tassoman
2023-10-07 13:26:14 +00:00
committed by Alex Gleason
parent 232f9547b5
commit 5ed8c78c88
2 changed files with 4 additions and 4 deletions

View File

@ -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 => {