diff options
author | Guilherme Vieira <guilherme@flipstudio.net> | 2017-09-28 04:47:24 +0300 |
---|---|---|
committer | Guilherme Vieira <guilherme@flipstudio.net> | 2017-10-04 03:06:55 +0300 |
commit | ddf6253d99268ab5a9e987f95d71cadfa467b423 (patch) | |
tree | 10c2a917bb4933d9322b7b72bd36cd80b407725f | |
parent | b14641579855a14398db260ab909ae77c164c883 (diff) |
Adjusts tag link to avoid underlining spaces
-rw-r--r-- | app/assets/stylesheets/framework/common.scss | 1 | ||||
-rw-r--r-- | app/views/projects/tags/_tag.html.haml | 7 | ||||
-rw-r--r-- | changelogs/unreleased/tag-link-size.yml | 5 |
3 files changed, 9 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? diff --git a/changelogs/unreleased/tag-link-size.yml b/changelogs/unreleased/tag-link-size.yml new file mode 100644 index 00000000000..d94e415ba1f --- /dev/null +++ b/changelogs/unreleased/tag-link-size.yml @@ -0,0 +1,5 @@ +--- +title: Adjusts tag link to avoid underlining spaces +merge_request: 14544 +author: Guilherme Vieira +type: fixed |