Skip to content

Commit

Permalink
Fix overflow docs (#875)
Browse files Browse the repository at this point in the history
  • Loading branch information
huv1k authored Nov 13, 2018
1 parent 3bb0118 commit 85c39ae
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import ColumnDoc from './ColumnDoc'
import SearchResults from './SearchResults'
import GraphDocsRoot from './GraphDocsRoot'
import SearchBox from './SearchBox'
import { styled } from '../../../styled'

export interface Props {
searchValue: string
Expand All @@ -18,7 +19,7 @@ export default class RootColumn extends React.PureComponent<Props, {}> {
return (
<ColumnDoc width={width} overflow={false}>
<SearchBox onSearch={handleSearch} />
<div className="overflowAuto flexAuto">
<Column>
{searchValue && (
<SearchResults
searchValue={searchValue}
Expand All @@ -30,8 +31,12 @@ export default class RootColumn extends React.PureComponent<Props, {}> {
{!searchValue && (
<GraphDocsRoot schema={schema} sessionId={sessionId} />
)}
</div>
</Column>
</ColumnDoc>
)
}
}

const Column = styled.div`
overflow: auto;
`

0 comments on commit 85c39ae

Please sign in to comment.