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