diff options
author | Rémy Coutable <remy@rymai.me> | 2017-10-04 17:01:54 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-10-04 17:01:54 +0000 |
commit | 7c5d5402f43cb1a0291150739f3960bd35ed63bf (patch) | |
tree | 23a2052ae7730f9bc00364c6e7ee22fb3cbb66b2 /app | |
parent | 01852ee882de4636cd04f3a3d03c5fa5bbd6e20a (diff) | |
parent | ddf6253d99268ab5a9e987f95d71cadfa467b423 (diff) | |
download | gitlab-ce-7c5d5402f43cb1a0291150739f3960bd35ed63bf.tar.gz |
Merge branch 'tag-link-size' into 'master'
Adjusts tag link to avoid underlining spaces
Closes #38122
See merge request gitlab-org/gitlab-ce!14544
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/stylesheets/framework/common.scss | 1 | ||||
-rw-r--r-- | app/views/projects/tags/_tag.html.haml | 7 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/stylesheets/framework/common.scss b/app/assets/stylesheets/framework/common.scss index 706a9cffe87..4e4ce94fb7b 100644 --- a/app/assets/stylesheets/framework/common.scss +++ b/app/assets/stylesheets/framework/common.scss @@ -11,6 +11,7 @@ .prepend-top-10 { margin-top: 10px; } .prepend-top-default { margin-top: $gl-padding !important; } .prepend-top-20 { margin-top: 20px; } +.prepend-left-4 { margin-left: 4px; } .prepend-left-5 { margin-left: 5px; } .prepend-left-10 { margin-left: 10px; } .prepend-left-default { margin-left: $gl-padding; } diff --git a/app/views/projects/tags/_tag.html.haml b/app/views/projects/tags/_tag.html.haml index 468ab922542..1927216e191 100644 --- a/app/views/projects/tags/_tag.html.haml +++ b/app/views/projects/tags/_tag.html.haml @@ -2,12 +2,11 @@ - release = @releases.find { |release| release.tag == tag.name } %li.flex-row .row-main-content.str-truncated - = link_to project_tag_path(@project, tag.name), class: 'item-title ref-name' do - = icon('tag') - = tag.name + = icon('tag') + = link_to tag.name, project_tag_path(@project, tag.name), class: 'item-title ref-name prepend-left-4' - if protected_tag?(@project, tag) - %span.label.label-success + %span.label.label-success.prepend-left-4 protected - if tag.message.present? |