Commit 8ba48310 authored by Ammar Alakkad's avatar Ammar Alakkad Committed by Kushal Pandya

Resolve "Label picker: Line break on long label titles"

parent c11eb0c3
......@@ -311,7 +311,8 @@ export default class LabelsSelect {
// We need to identify which items are actually labels
if (label.id) {
selectedClass.push('label-item');
const selectedLayoutClasses = ['d-flex', 'flex-row', 'text-break-word'];
selectedClass.push('label-item', ...selectedLayoutClasses);
linkEl.dataset.labelId = label.id;
}
......
......@@ -30,6 +30,10 @@
.dropdown-content {
max-height: 135px;
}
.dropdown-label-box {
flex: 0 0 auto;
}
}
.dropdown-new-label {
......
---
title: 'Resolve Label picker: Line break on long label titles'
merge_request: 30610
author:
type: fixed
......@@ -381,7 +381,7 @@ describe 'Issues > Labels bulk assignment' do
if unmark
items.map do |item|
# Make sure we are unmarking the item no matter the state it has currently
click_link item until find('a', text: item)[:class] == 'label-item'
click_link item until find('a', text: item)[:class].include? 'label-item'
end
end
end
......
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