mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-12 22:49:15 +00:00
parent
e595e72141
commit
4c295bc38c
@ -249,7 +249,7 @@ class DirPath extends React.Component {
|
||||
<span className="path-split">/</span>
|
||||
</Fragment>
|
||||
)}
|
||||
{(currentPath === '/' || currentPath === '') ?
|
||||
{(currentPath === '/' || currentPath === '' || Utils.isMarkdownFile(this.props.currentPath)) ?
|
||||
<DirOperationToolBar
|
||||
path={this.props.currentPath}
|
||||
repoID={this.props.repoID}
|
||||
@ -269,8 +269,8 @@ class DirPath extends React.Component {
|
||||
</DirOperationToolBar> :
|
||||
<span className="path-item" data-path="/" onClick={this.onPathClick} role="button">{repoName}</span>
|
||||
}
|
||||
{pathElem}
|
||||
{this.props.isViewFile && !this.isViewMetadata() && (
|
||||
{Utils.isMarkdownFile(this.props.currentPath) ? null : pathElem}
|
||||
{this.props.isViewFile && !Utils.isMarkdownFile(this.props.currentPath) && !this.isViewMetadata() && (
|
||||
<InternalLinkOperation repoID={this.props.repoID} path={this.props.currentPath}/>
|
||||
)}
|
||||
{(this.props.isViewFile && fileTags.length !== 0) &&
|
||||
|
@ -27,7 +27,7 @@
|
||||
|
||||
.seafile-markdown-viewer-modal-body {
|
||||
padding: 0;
|
||||
height: 600px;
|
||||
height: calc(100vh / 2 + 130px);
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
|
@ -52,7 +52,7 @@ class DirColumnFile extends React.Component {
|
||||
|
||||
render() {
|
||||
const { currentDirent } = this.props;
|
||||
const { name } = currentDirent;
|
||||
const { name } = currentDirent || {};
|
||||
|
||||
if (this.props.isFileLoadedErr) {
|
||||
return (
|
||||
|
@ -91,7 +91,7 @@ class LibContentView extends React.Component {
|
||||
asyncOperationProgress: 0,
|
||||
asyncOperatedFilesLength: 0,
|
||||
viewId: '0000',
|
||||
currentDirent: null
|
||||
currentDirent: {}
|
||||
};
|
||||
|
||||
this.oldonpopstate = window.onpopstate;
|
||||
|
Loading…
Reference in New Issue
Block a user