1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 17:33:18 +00:00

repair scroll bug&file padding bug (#2976)

This commit is contained in:
杨顺强
2019-02-21 18:09:17 +08:00
committed by Daniel Pan
parent 0fccd9530b
commit da875a5e57
3 changed files with 2 additions and 2 deletions

View File

@@ -146,7 +146,6 @@
.cur-view-content .wiki-page-content { .cur-view-content .wiki-page-content {
flex: 1; flex: 1;
padding-right: 40px;
} }
.dir-content-main .wiki-page-content .article { .dir-content-main .wiki-page-content .article {

View File

@@ -142,7 +142,7 @@ class LibContentContainer extends React.Component {
onPathClick={this.onPathClick} onPathClick={this.onPathClick}
/> />
</div> </div>
<div className="cur-view-content view-mode-container"> <div className={`cur-view-content ${this.props.currentMode === 'column' ? 'view-mode-container' : ''}`}>
{!this.props.pathExist && this.errMessage} {!this.props.pathExist && this.errMessage}
{this.props.pathExist && ( {this.props.pathExist && (
<Fragment> <Fragment>

View File

@@ -524,6 +524,7 @@ class LibContentView extends React.Component {
} }
this.setState({currentMode: mode}); this.setState({currentMode: mode});
this.showDir(path);
} }
onSearchedClick = (item) => { onSearchedClick = (item) => {