mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-11 11:51:27 +00:00
modify repo tag color (#3006)
* modify repo tag color * add getDrakColor function
This commit is contained in:
@@ -377,7 +377,7 @@ class DirentListItem extends React.Component {
|
||||
{dirent.file_tags.map((fileTag, index) => {
|
||||
let length = dirent.file_tags.length;
|
||||
return (
|
||||
<span className={`file-tag bg-${fileTag.color}`} key={fileTag.id} style={{zIndex: length - index }}></span>
|
||||
<span className="file-tag" key={fileTag.id} style={{zIndex:length - index, backgroundColor:fileTag.color}}></span>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user