mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-06 09:21:54 +00:00
fix sdoc history no changes show icon
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
height: 50px;
|
height: 50px;
|
||||||
border-bottom: 1px solid #e5e5e5;
|
border-bottom: 1px solid #e5e5e5;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sdoc-file-history .sdoc-file-history-header .sdoc-file-history-header-left {
|
.sdoc-file-history .sdoc-file-history-header .sdoc-file-history-header-left {
|
||||||
|
@@ -243,7 +243,15 @@ class SdocFileHistory extends React.Component {
|
|||||||
renderChangesTip = ({ onChangeSidePanelDisplay }) => {
|
renderChangesTip = ({ onChangeSidePanelDisplay }) => {
|
||||||
const { isShowChanges, changes, currentDiffIndex, isLoading } = this.state;
|
const { isShowChanges, changes, currentDiffIndex, isLoading } = this.state;
|
||||||
if (isLoading) return null;
|
if (isLoading) return null;
|
||||||
if (!isShowChanges) return null;
|
if (!isShowChanges) {
|
||||||
|
return (
|
||||||
|
<div className="sdoc-file-history-header-right d-flex align-items-center justify-content-end">
|
||||||
|
<div className='sdoc-file-changes-switch'>
|
||||||
|
<i className="sf3-font sf3-font-history" onClick={onChangeSidePanelDisplay}></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
const changesCount = changes ? changes.length : 0;
|
const changesCount = changes ? changes.length : 0;
|
||||||
if (changesCount === 0) {
|
if (changesCount === 0) {
|
||||||
return (
|
return (
|
||||||
|
Reference in New Issue
Block a user