Merge pull request #12577 from influxdata/fix/veo-height

Fix/veo height
pull/12583/head
Brandon Farmer 2019-03-12 15:58:44 -07:00 committed by GitHub
commit ab2fd3ba2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 4 deletions

View File

@ -18,6 +18,7 @@ import {ErrorHandling} from 'src/shared/decorators/errors'
interface Props {
children: JSX.Element
visible: boolean
className?: string
}
interface State {
@ -88,9 +89,12 @@ class Overlay extends Component<Props, State> {
}
private get overlayClass(): string {
const {visible} = this.props
const {visible, className} = this.props
return classnames('overlay', {show: visible})
return classnames('overlay', {
show: visible,
[`${className}`]: className,
})
}
private hideChildren = (): void => {

View File

@ -202,7 +202,7 @@ class DashboardPage extends Component<Props, State> {
onAddCell={this.handleAddCell}
/>
)}
<Overlay visible={isShowingVEO}>
<Overlay visible={isShowingVEO} className="veo-overlay">
<VEO onHide={this.handleHideVEO} onSave={this.handleSaveVEO} />
</Overlay>
</HoverTimeProvider>

View File

@ -25,6 +25,12 @@
display: flex;
align-items: stretch;
width: 100%;
flex: 0 0 calc(100% - #{$page-header-size});
flex: 0 0 calc(100% - #{$page-header-size});
padding-bottom: $ix-marg-c;
}
.veo-overlay {
.overlay--transition {
height: 100%;
}
}