Fix keyboard search when left pane is narrow

This PR fixes Cmd+f/Ctrl+f functionality in the left pane.
Using a keyboard to search across all
conversations should now automatically change the left pane width
to accommodate the search input component.

Resolves: #6281
This commit is contained in:
veekas ashoka 2023-02-22 14:21:59 -05:00
parent 3d735acdec
commit 0100866d0a
7 changed files with 99 additions and 23 deletions

View file

@ -54,6 +54,23 @@ export const getIsSearchingInAConversation = createSelector(
Boolean
);
export const getGlobalSearchValue = createSelector(
getSearch,
(state: SearchStateType): boolean | undefined => state.globalSearch
);
export const getIsSearchingGlobally = createSelector(
getGlobalSearchValue,
Boolean
);
export const getIsSearching = createSelector(
getIsSearchingInAConversation,
getIsSearchingGlobally,
(isSearchingInAConversation, isSearchingGlobally): boolean =>
isSearchingInAConversation || isSearchingGlobally
);
export const getSearchConversation = createSelector(
getSearchConversationId,
getConversationLookup,