mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 07:27:04 +00:00
This reverts commit 4f5265dc3a
.
This commit is contained in:
@@ -91,7 +91,6 @@ class DirentListItem extends React.Component {
|
||||
isOpMenuOpen: false // for mobile
|
||||
};
|
||||
this.tagListTitleID = `tag-list-title-${uuidv4()}`;
|
||||
this.tagListStackedID = `tag-list-stacked-${uuidv4()}`;
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
@@ -752,10 +751,10 @@ class DirentListItem extends React.Component {
|
||||
</Fragment>
|
||||
)}
|
||||
</td>
|
||||
<td className="tag-list-title" id={this.tagListTitleID}>
|
||||
<td className="tag-list-title">
|
||||
{(dirent.type !== 'dir' && dirent.file_tags && dirent.file_tags.length > 0) && (
|
||||
<Fragment>
|
||||
<div className="dirent-item tag-list tag-list-stacked" id={this.tagListStackedID}>
|
||||
<div id={this.tagListTitleID} className="dirent-item tag-list tag-list-stacked">
|
||||
{dirent.file_tags.map((fileTag, index) => {
|
||||
let length = dirent.file_tags.length;
|
||||
return (
|
||||
@@ -763,7 +762,7 @@ class DirentListItem extends React.Component {
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
<UncontrolledTooltip target={this.tagListStackedID} placement="bottom">
|
||||
<UncontrolledTooltip target={this.tagListTitleID} placement="bottom">
|
||||
{tagTitle}
|
||||
</UncontrolledTooltip>
|
||||
</Fragment>
|
||||
|
Reference in New Issue
Block a user