1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

update file path style (#3896)

This commit is contained in:
Michael An
2019-07-23 15:53:25 +08:00
committed by Daniel Pan
parent b1a0404cb7
commit 6f2c6ae16d
3 changed files with 14 additions and 5 deletions

View File

@@ -38,7 +38,10 @@ class DirPath extends React.Component {
}
if (index === (pathList.length - 1)) {
return (
<span key={index}><span className="path-split">/</span>{item}</span>
<Fragment key={index}>
<span className="path-split">/</span>
<span className="path-file-name">{item}</span>
</Fragment>
);
} else {
nodePath += '/' + item;
@@ -87,7 +90,7 @@ class DirPath extends React.Component {
</Fragment>
)}
{(currentPath === '/' || currentPath === '') ?
<span>{repoName}</span>:
<span className="path-repo-name">{repoName}</span>:
<a className="path-link" data-path="/" onClick={this.onPathClick}>{repoName}</a>
}
{pathElem}