From efa5bf6a544c5398f1040627629c420eb4bcf2b9 Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Wed, 12 Jul 2017 01:05:28 -0700 Subject: [PATCH 1/2] Fixed width issues wit search --- frontend/scenes/Search/Search.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/scenes/Search/Search.js b/frontend/scenes/Search/Search.js index 6a9f184c9..a6436ae28 100644 --- a/frontend/scenes/Search/Search.js +++ b/frontend/scenes/Search/Search.js @@ -9,10 +9,10 @@ import { searchUrl } from 'utils/routeHelpers'; import styled from 'styled-components'; import ArrowKeyNavigation from 'boundless-arrow-key-navigation'; +import CenteredContent from 'components/CenteredContent'; import SearchField from './components/SearchField'; import SearchStore from './SearchStore'; -import CenteredContent from 'components/CenteredContent'; import DocumentPreview from 'components/DocumentPreview'; import PageTitle from 'components/PageTitle'; @@ -39,6 +39,12 @@ const ResultList = styled(Flex)` transition: all 400ms cubic-bezier(0.65, 0.05, 0.36, 1); `; +const StyledArrowKeyNavigation = styled(ArrowKeyNavigation)` + display: flex; + flex-direction: column; + flex: 1; +`; + @observer class Search extends React.Component { firstDocument: HTMLElement; props: Props; @@ -106,7 +112,7 @@ const ResultList = styled(Flex)` value={query || ''} /> - @@ -118,7 +124,7 @@ const ResultList = styled(Flex)` highlight={this.store.searchTerm} /> ))} - + From add1f0d9b670e2cd77a490d3dfc87935557e2592 Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Wed, 12 Jul 2017 01:11:34 -0700 Subject: [PATCH 2/2] Fix to CenteredContent --- frontend/scenes/Search/Search.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/scenes/Search/Search.js b/frontend/scenes/Search/Search.js index a6436ae28..59e8a3f90 100644 --- a/frontend/scenes/Search/Search.js +++ b/frontend/scenes/Search/Search.js @@ -23,7 +23,9 @@ type Props = { }; const Container = styled(CenteredContent)` - position: relative; + > div { + position: relative; + } `; const ResultsWrapper = styled(Flex)`