summaryrefslogtreecommitdiff
path: root/app/helpers/labels_helper.rb
diff options
context:
space:
mode:
authorRajat Jain <rjain@gitlab.com>2019-04-15 17:41:39 +0530
committerRajat Jain <rjain@gitlab.com>2019-04-16 16:38:49 +0530
commit17a48fadee10fe476c1be54c6df0913ed2af2791 (patch)
treeaeb20c5d77b75a09a53bd6c8310c1f0588e472fb /app/helpers/labels_helper.rb
parent0a99e0220d9371423039f05f700af3675b26624f (diff)
downloadgitlab-ce-17a48fadee10fe476c1be54c6df0913ed2af2791.tar.gz
Hide overflow in scoped labels
Scoped labels overflew in all the places because of lack of restriction on `max-width`. This commit introduces the same limits on width we have inplace for regular labels
Diffstat (limited to 'app/helpers/labels_helper.rb')
-rw-r--r--app/helpers/labels_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/labels_helper.rb b/app/helpers/labels_helper.rb
index e91e8f85515..a07c3f90a91 100644
--- a/app/helpers/labels_helper.rb
+++ b/app/helpers/labels_helper.rb
@@ -89,7 +89,7 @@ module LabelsHelper
def render_colored_label(label, label_suffix: '', tooltip: true, title: nil)
text_color = text_color_for_bg(label.color)
- title ||= tooltip ? label_tooltip_title(label) : ''
+ title ||= tooltip ? label_tooltip_title(label) : label.name
# Intentionally not using content_tag here so that this method can be called
# by LabelReferenceFilter