mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-14 06:11:16 +00:00
fix resizer width (#3023)
This commit is contained in:
@@ -134,7 +134,7 @@ class DirColumnView extends React.Component {
|
|||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentWillMount() {
|
||||||
let rate = this.getCookie('navRate');
|
let rate = this.getCookie('navRate');
|
||||||
if (rate) {
|
if (rate) {
|
||||||
this.setState({
|
this.setState({
|
||||||
@@ -148,7 +148,7 @@ class DirColumnView extends React.Component {
|
|||||||
const select = this.state.inResizing ? 'none' : '';
|
const select = this.state.inResizing ? 'none' : '';
|
||||||
const mainFlex = '1 0 ' + (1 - this.state.navRate) * 100 + '%';
|
const mainFlex = '1 0 ' + (1 - this.state.navRate) * 100 + '%';
|
||||||
return (
|
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
|
<DirColumnNav
|
||||||
currentPath={this.props.path}
|
currentPath={this.props.path}
|
||||||
repoPermission={this.props.repoPermission}
|
repoPermission={this.props.repoPermission}
|
||||||
|
@@ -7,6 +7,11 @@
|
|||||||
min-height: 0;
|
min-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dir-colunm-view {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.dir-content-nav {
|
.dir-content-nav {
|
||||||
flex: 0 0 25%;
|
flex: 0 0 25%;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
Reference in New Issue
Block a user