1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 16:10:26 +00:00
This commit is contained in:
MichaelAn
2018-10-30 14:20:02 +08:00
committed by Daniel Pan
parent 0a9f965fce
commit f08a95a40f
3 changed files with 6 additions and 9 deletions

View File

@@ -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;

View File

@@ -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}

View File

@@ -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;
}