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

fix sdoc history no changes show icon

This commit is contained in:
Michael An
2024-05-29 16:54:35 +08:00
parent c6f12bc092
commit acb7dc94ba
2 changed files with 10 additions and 1 deletions

View File

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

View File

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