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

@ -14,7 +14,7 @@ describe('LeftPaneInboxHelper', () => {
const defaultProps: LeftPaneInboxPropsType = {
archivedConversations: [],
conversations: [],
isAboutToSearchInAConversation: false,
isAboutToSearch: false,
pinnedConversations: [],
searchConversation: undefined,
searchDisabled: false,
@ -616,7 +616,7 @@ describe('LeftPaneInboxHelper', () => {
it("returns true if we're about to search in a conversation", () => {
const helper = new LeftPaneInboxHelper({
...defaultProps,
isAboutToSearchInAConversation: true,
isAboutToSearch: true,
});
assert.isTrue(helper.requiresFullWidth());