Skip to content
Snippets Groups Projects
Commit 86be4a6f authored by Kushal Pandya's avatar Kushal Pandya
Browse files

Merge branch '48431-width' into 'master'

Hide overflow in scoped labels

Closes #48431

See merge request gitlab-org/gitlab-ce!27362
parents c16619c5 17a48fad
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -107,6 +107,10 @@
}
 
.scoped-label-wrapper {
> a {
max-width: 100%;
}
.color-label {
padding-right: $gl-padding-24;
}
Loading
Loading
Loading
Loading
@@ -408,12 +408,21 @@
}
 
.scoped-label-wrapper {
max-width: 100%;
vertical-align: top;
.badge {
text-overflow: ellipsis;
overflow-x: hidden;
}
&.label-link .color-label a {
color: inherit;
}
 
.color-label {
padding-right: $gl-padding-24;
max-width: 100%;
}
 
.scoped-label {
Loading
Loading
@@ -444,3 +453,13 @@
}
}
}
// Don't hide the overflow in system messages
.system-note-message,
.issuable-detail {
.scoped-label-wrapper {
.badge {
overflow: initial;
}
}
}
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment