Skip to content

Commit

Permalink
fix sdoc history no result style
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael18811380328 committed May 29, 2024
1 parent 13bcf7c commit c6f12bc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
10 changes: 1 addition & 9 deletions frontend/src/pages/sdoc/sdoc-file-history/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,7 @@

.sdoc-file-history .sdoc-file-history-content .sdoc-file-history-viewer {
width: 100%;
min-height: 120px;
flex: 1;
background-color: #fff;
word-break: break-word;
border: 1px solid #e6e6dd;
height: calc(100vh - 50px);
}

.sdoc-file-history .sdoc-file-history-container .sdoc-file-history-content .sdoc-editor-content {
Expand Down Expand Up @@ -364,10 +360,6 @@
padding: 0;
}

.sdoc-file-history .sdoc-file-history-content .sdoc-file-history-viewer {
border: none;
}

.markdown-viewer-render-content {
margin: 20px;
}
Expand Down
9 changes: 6 additions & 3 deletions frontend/src/pages/sdoc/sdoc-file-history/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,12 +339,15 @@ class SdocFileHistory extends React.Component {
const path = [0, 0, 0];
const { isShowChanges } = this.state;
this.onSelectHistoryVersion(...getCurrentAndLastVersion(path, historyGroups, isShowChanges));
} else {
this.setState({ isLoading: false });
}
}).catch((error) => {
const errorMessage = 'there has an error in server';
const isLoading = false;
this.setState({ isLoading });
this.setState({ sidePanelInitData: { isLoading, errorMessage } });
this.setState({
isLoading: false,
sidePanelInitData: { isLoading: false, errorMessage }
});
throw Error(errorMessage);
});
}
Expand Down

0 comments on commit c6f12bc

Please sign in to comment.