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

This commit is contained in:
Ammar Alakkad 2019-07-17 14:18:12 +00:00 committed by Kushal Pandya
parent c11eb0c3a4
commit 8ba48310af
4 changed files with 12 additions and 2 deletions

View File

@ -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;
}

View File

@ -30,6 +30,10 @@
.dropdown-content {
max-height: 135px;
}
.dropdown-label-box {
flex: 0 0 auto;
}
}
.dropdown-new-label {

View File

@ -0,0 +1,5 @@
---
title: 'Resolve Label picker: Line break on long label titles'
merge_request: 30610
author:
type: fixed

View File

@ -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