1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 07:55:36 +00:00

['file history' page] redesigned it for markdown file; fixed UI for common files in production environment (#5725)

This commit is contained in:
llj
2023-10-31 21:06:39 +08:00
committed by GitHub
parent 737eb895f7
commit 955c292ce8
4 changed files with 39 additions and 48 deletions

View File

@@ -216,22 +216,22 @@ class FileHistory extends React.Component {
Utils.handleSearchedItemClick(searchedItem);
};
goBack = (e) => {
e.preventDefault();
window.history.back();
}
render() {
return (
<Fragment>
<div id="header" className="old-history-header">
<div className="logo">
<Logo showCloseSidePanelIcon={false}/>
</div>
<div className='toolbar'>
<CommonToolbar onSearchedClick={this.onSearchedClick} />
</div>
<Logo showCloseSidePanelIcon={false} />
<CommonToolbar onSearchedClick={this.onSearchedClick} />
</div>
<div id="main" onScroll={this.onScrollHandler}>
<div className="old-history-main">
<Fragment>
{/* eslint-disable-next-line */}
<a href="javascript:window.history.back()" className="go-back" title="Back">
<a href="#" className="go-back" title="Back" onClick={this.goBack}>
<span className="fas fa-chevron-left"></span>
</a>
<h2><span className="file-name">{fileName}</span>{' '}{gettext('History Versions')}</h2>