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:
@@ -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}
|
||||
|
Reference in New Issue
Block a user