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:
@@ -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());
|
||||
|
Reference in New Issue
Block a user