1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-13 22:01:06 +00:00

fix resizer width (#3023)

This commit is contained in:
Michael An
2019-03-01 11:02:24 +08:00
committed by Daniel Pan
parent 705cc67f3b
commit 17bd372668
2 changed files with 7 additions and 2 deletions

View File

@@ -134,7 +134,7 @@ class DirColumnView extends React.Component {
return '';
}
componentDidMount() {
componentWillMount() {
let rate = this.getCookie('navRate');
if (rate) {
this.setState({
@@ -148,7 +148,7 @@ class DirColumnView extends React.Component {
const select = this.state.inResizing ? 'none' : '';
const mainFlex = '1 0 ' + (1 - this.state.navRate) * 100 + '%';
return (
<div className="d-flex" onMouseMove={onResizeMove} onMouseUp={this.onResizeMouseUp} ref="viewModeContainer">
<div className="dir-colunm-view" onMouseMove={onResizeMove} onMouseUp={this.onResizeMouseUp} ref="viewModeContainer">
<DirColumnNav
currentPath={this.props.path}
repoPermission={this.props.repoPermission}

View File

@@ -7,6 +7,11 @@
min-height: 0;
}
.dir-colunm-view {
display: flex;
width: 100%;
}
.dir-content-nav {
flex: 0 0 25%;
display: flex;