Fix height of flex

This commit is contained in:
Anthony Laibe 2018-10-12 11:05:03 +01:00 committed by Pascal Precht
parent 0e4cb11ab6
commit cb4a1e1073
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
5 changed files with 14 additions and 9 deletions

View File

@ -177,7 +177,7 @@ class FileExplorer extends React.Component {
render() {
return (
<React.Fragment>
<div className="h-100 d-flex flex-column">
<Form.Switch type="checkbox" name="toggle" value={true} label="Show hidden files" onChange={this.onHiddenToggle.bind(this)} />
<Treebeard
data={this.filterHidden(this.props.files)}
@ -185,7 +185,7 @@ class FileExplorer extends React.Component {
onToggle={this.onToggle.bind(this)}
style={style}
/>
</React.Fragment>
</div>
);
}
}

View File

@ -28,7 +28,7 @@ class Preview extends React.Component {
render() {
return (
<Form.Group className='h-100'>
<div className='h-100 d-flex flex-column'>
<Form.InputGroup>
<Form.Input placeholder="URL"
value={this.state.previewUrl}
@ -44,7 +44,7 @@ class Preview extends React.Component {
ref={(iframe) => this.previewIframe = iframe}
onLoad={(e) => this.handlePreviewChange(e)} src={this.state.previewUrl}>
</iframe>
</Form.Group>
</div>
);
}
}

View File

@ -81,11 +81,11 @@ class TextEditor extends React.Component {
}
render() {
const style = {
height: "100%"
};
return <div style={style} id={EDITOR_ID} />;
return (
<div className="h-100 d-flex flex-column">
<div style={{height: '100%'}} id={EDITOR_ID} />
</div>
)
}
}

View File

@ -1,3 +1,7 @@
.app-body {
overflow-x: unset;
}
.logs {
margin: 10px 0;
background-color: #333333;

View File

@ -5,6 +5,7 @@ import {Provider} from 'react-redux';
import 'font-awesome/css/font-awesome.min.css';
import '@coreui/coreui/dist/css/coreui.min.css';
import './index.css';
import AppContainer from './containers/AppContainer';
import history from "./history";