mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-03 16:10:26 +00:00
fix-bug (#2484)
This commit is contained in:
@@ -61,6 +61,7 @@
|
|||||||
color: #1e1e1e;
|
color: #1e1e1e;
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
display: block;
|
display: block;
|
||||||
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
.seafile-toggle-diff {
|
.seafile-toggle-diff {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@@ -159,7 +159,7 @@ class DraftReview extends React.Component {
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
const onResizeMove = this.state.inResizing ? this.onResizeMouseMove : null;
|
const onResizeMove = this.state.inResizing ? this.onResizeMouseMove : null;
|
||||||
const draftLink = siteRoot + 'lib/' + draftOriginRepoID + '/file' + draftFilePath;
|
const draftLink = siteRoot + 'lib/' + draftOriginRepoID + '/file' + draftFilePath + '?mode=edit';
|
||||||
return(
|
return(
|
||||||
<div className="wrapper">
|
<div className="wrapper">
|
||||||
<div id="header" className="header review">
|
<div id="header" className="header review">
|
||||||
@@ -172,13 +172,15 @@ class DraftReview extends React.Component {
|
|||||||
<span className="file-name">{draftFileName}</span>
|
<span className="file-name">{draftFileName}</span>
|
||||||
<span className="file-copywriting">{gettext('review')}</span>
|
<span className="file-copywriting">{gettext('review')}</span>
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
{ draftID !== 'None' && <a href={draftLink} className="draft-link">{gettext('View draft')}</a>}
|
{ draftID !== 'None' && <a href={draftLink} className="draft-link">{gettext('Edit draft')}</a>}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="button-group">
|
<div className="button-group">
|
||||||
<div className={'seafile-toggle-diff'}>
|
<div className={'seafile-toggle-diff'}>
|
||||||
<label className="custom-switch" id="toggle-diff">
|
<label className="custom-switch" id="toggle-diff">
|
||||||
<input type="checkbox" name="option" className="custom-switch-input" onClick={this.onSwitchShowDiff}/>
|
<input type="checkbox" checked={this.state.isShowDiff ? 'checked' : ''}
|
||||||
|
name="option" className="custom-switch-input"
|
||||||
|
onClick={this.onSwitchShowDiff}/>
|
||||||
<span className="custom-switch-indicator"></span>
|
<span className="custom-switch-indicator"></span>
|
||||||
</label>
|
</label>
|
||||||
<Tooltip placement="bottom" isOpen={this.state.showDiffTip}
|
<Tooltip placement="bottom" isOpen={this.state.showDiffTip}
|
||||||
|
@@ -980,9 +980,3 @@ a.op-icon:focus {
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
/* end activity page */
|
/* end activity page */
|
||||||
|
|
||||||
/* css to overwrite seahub-ui.css */
|
|
||||||
.custom-switch-input:checked ~ .custom-switch-indicator {
|
|
||||||
background: #eb8205;
|
|
||||||
border: 1px solid #eb8205;
|
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user