N°3925 - Improve display of long external keys in autocomplete / dropdowns

- Show ellipsis if label is overflowing
- Show tooltip on hover (useful for overflowing labels)
This commit is contained in:
Molkobain
2021-09-30 17:48:16 +02:00
parent 2ae01c19e1
commit e0d6bc18be
4 changed files with 7 additions and 7 deletions

View File

@@ -145,7 +145,7 @@ function ExtKeyWidget(id, sTargetClass, sFilter, sTitle, bSelectMode, oWizHelper
val = '<span class="ibo-input-select--autocomplete-item-image">'+item.initials+'</span>';
}
}
val = val+'<span class="ibo-input-select--autocomplete-item-txt" >';
val = val+'<span class="ibo-input-select--autocomplete-item-txt" title="'+item.label+'">';
if (item.obsolescence_flag == 1) {
val = val+'<span class="object-ref-icon text_decoration"><span class="fas fa-eye-slash object-obsolete fa-1x fa-fw"></span></span>'+item.label;
} else {
@@ -257,7 +257,7 @@ function ExtKeyWidget(id, sTargetClass, sFilter, sTitle, bSelectMode, oWizHelper
val = '<span class="ibo-input-select--autocomplete-item-image");">'+item.initials+'</span>';
}
}
val = val+'<div class="ibo-input-select--autocomplete-item-txt">';
val = val+'<div class="ibo-input-select--autocomplete-item-txt" title="'+item.label+'">';
if (item.obsolescence_flag == '1') {
val = val+' <span class="object-ref-icon text_decoration"><span class="fas fa-eye-slash object-obsolete fa-1x fa-fw"></span></span>';
}