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

[file view] modification for browser compatibility

This commit is contained in:
llj
2019-04-30 12:14:23 +08:00
parent 4a8b986c99
commit 2347e517be
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ class FileViewTip extends React.Component {
}
return (
<div className="file-view-content flex-1">
<div className="file-view-content flex-1 o-auto">
<div className="file-view-tip">
{errorMsg}
<a href="?dl=1" className="btn btn-secondary">{gettext('Download')}</a>

View File

@@ -92,7 +92,7 @@ class FileView extends React.Component {
toggleCommentPanel={this.toggleCommentPanel}
/>
</div>
<div className="file-view-body flex-auto d-flex">
<div className="file-view-body flex-auto d-flex o-hidden">
{this.props.content}
{this.state.isCommentPanelOpen &&
<CommentPanel toggleCommentPanel={this.toggleCommentPanel} />