diff --git a/frontend/src/components/dialog/list-tag-dialog.js b/frontend/src/components/dialog/list-tag-dialog.js index 6ce0a5ae5f..f7a8244866 100644 --- a/frontend/src/components/dialog/list-tag-dialog.js +++ b/frontend/src/components/dialog/list-tag-dialog.js @@ -54,11 +54,11 @@ class TagListItem extends React.Component {
{this.props.item.name} - +
- + ); } diff --git a/frontend/src/components/dialog/list-taggedfiles-dialog.js b/frontend/src/components/dialog/list-taggedfiles-dialog.js index 4f2fac1438..b6d111f5f4 100644 --- a/frontend/src/components/dialog/list-taggedfiles-dialog.js +++ b/frontend/src/components/dialog/list-taggedfiles-dialog.js @@ -135,24 +135,29 @@ class TaggedFile extends React.Component { }); } + deleteFile = (e) => { + e.preventDefault(); + this.props.onDeleteTaggedFile(this.props.taggedFile); + } + render() { const taggedFile = this.props.taggedFile; let className = this.state.active ? 'action-icon sf2-icon-x3' : 'action-icon vh sf2-icon-x3'; let path = taggedFile.parent_path ? Utils.joinPath(taggedFile.parent_path, taggedFile.filename) : ''; let href = siteRoot + 'lib/' + this.props.repoID + '/file' + Utils.encodePath(path); return ( taggedFile.file_deleted ? - + {taggedFile.filename}{' '} {gettext('deleted')} - + : - + {taggedFile.filename} {Utils.bytesToSize(taggedFile.size)} {moment.unix(taggedFile.mtime).fromNow()} - + ); } diff --git a/frontend/src/components/repo-info-bar.js b/frontend/src/components/repo-info-bar.js index 7efe8c4ef1..ff19ad8b08 100644 --- a/frontend/src/components/repo-info-bar.js +++ b/frontend/src/components/repo-info-bar.js @@ -69,9 +69,9 @@ class RepoInfoBar extends React.Component {
  • {usedRepoTag.name} - +
  • ); })} @@ -94,9 +94,9 @@ class RepoInfoBar extends React.Component { {gettext('draft')} - + } diff --git a/frontend/src/css/repo-tag.css b/frontend/src/css/repo-tag.css index cca3b77c92..976e6e26b9 100644 --- a/frontend/src/css/repo-tag.css +++ b/frontend/src/css/repo-tag.css @@ -45,8 +45,9 @@ .tag-demo .tag-files { margin-right: 0.5rem; + color: #fff; cursor: pointer; - border-bottom: 1px solid; + text-decoration: underline; } .tag-list-item .tag-edit { @@ -58,6 +59,8 @@ height: 2.25rem; border-radius: 0.25rem; color: #798d99; + cursor: pointer; + background: transparent; } .tag-list-item .tag-edit:hover {