Commit 7c5d5402 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'tag-link-size' into 'master'

Adjusts tag link to avoid underlining spaces

Closes #38122

See merge request gitlab-org/gitlab-ce!14544
parents 01852ee8 ddf6253d
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
.prepend-top-10 { margin-top: 10px; } .prepend-top-10 { margin-top: 10px; }
.prepend-top-default { margin-top: $gl-padding !important; } .prepend-top-default { margin-top: $gl-padding !important; }
.prepend-top-20 { margin-top: 20px; } .prepend-top-20 { margin-top: 20px; }
.prepend-left-4 { margin-left: 4px; }
.prepend-left-5 { margin-left: 5px; } .prepend-left-5 { margin-left: 5px; }
.prepend-left-10 { margin-left: 10px; } .prepend-left-10 { margin-left: 10px; }
.prepend-left-default { margin-left: $gl-padding; } .prepend-left-default { margin-left: $gl-padding; }
......
...@@ -2,12 +2,11 @@ ...@@ -2,12 +2,11 @@
- release = @releases.find { |release| release.tag == tag.name } - release = @releases.find { |release| release.tag == tag.name }
%li.flex-row %li.flex-row
.row-main-content.str-truncated .row-main-content.str-truncated
= link_to project_tag_path(@project, tag.name), class: 'item-title ref-name' do = icon('tag')
= icon('tag') = link_to tag.name, project_tag_path(@project, tag.name), class: 'item-title ref-name prepend-left-4'
= tag.name
- if protected_tag?(@project, tag) - if protected_tag?(@project, tag)
%span.label.label-success %span.label.label-success.prepend-left-4
protected protected
- if tag.message.present? - if tag.message.present?
......
---
title: Adjusts tag link to avoid underlining spaces
merge_request: 14544
author: Guilherme Vieira
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment