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:
@@ -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>
|
||||
|
@@ -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} />
|
||||
|
Reference in New Issue
Block a user