@@ -4320,12 +4320,12 @@ function(teampassApplication) {
4320
4320
description = (value.desc.replace(/<.*>/gi, '').trim() !== '' ? '<i>'+itemLabel + '</i><i class="fa-solid fa-heading mr-1 ml-2"></i>' + value.desc : '<i>'+itemLabel + '</i>');
4321
4321
// Consolidate item label
4322
4322
if (description !== '') {
4323
- description = '<span class="text-secondary small">' + description + '</span>';
4323
+ description = '<span class="text-secondary small d-inline-block text-truncate ">' + description + '</span>';
4324
4324
}
4325
4325
4326
4326
$('#teampass_items_list').append(
4327
4327
'<tr class="list-item-row' + (value.canMove === 1 ? ' is-draggable' : '') + ((store.get('teampassApplication').highlightFavorites === 1 && value.is_favourited === 1) ? ' bg-yellow' : '') + '" id="list-item-row_' + value.item_id + '" data-item-key="' + value.item_key + '" data-item-edition="' + value.open_edit + '" data-item-id="' + value.item_id + '" data-item-sk="' + value.sk + '" data-item-expired="' + value.expired + '" data-item-rights="' + value.rights + '" data-item-display="' + value.display + '" data-item-open-edit="' + value.open_edit + '" data-item-tree-id="' + value.tree_id + '" data-is-search-result="' + value.is_result_of_search + '" data-label="' + escape(value.label) + '">' +
4328
- '<td class="list-item-description" style="width: 100%; ">' +
4328
+ '<td class="list-item-description px-3 py-0 align-middle d-flex ">' +
4329
4329
// Show user a grippy bar to move item
4330
4330
(value.canMove === 1 ? '<i class="fa-solid fa-ellipsis-v mr-2 dragndrop"></i>' : '') + //&& value.is_result_of_search === 0
4331
4331
// Show user a ban icon if expired
@@ -4334,11 +4334,12 @@ function(teampassApplication) {
4334
4334
(value.rights === 10 ? '<i class="fa-regular fa-eye-slash fa-xs mr-2 text-primary infotip" title="<?php echo $ lang ->get ('item_with_restricted_access ' ); ?> "></i>' : '') +
4335
4335
// Show user that password is badly encrypted
4336
4336
(value.pw_status === 'encryption_error' ? '<i class="fa-solid fa-exclamation-triangle fa-xs text-danger infotip mr-1" title="<?php echo $ lang ->get ('pw_encryption_error ' ); ?> "></i>' : '') +
4337
- // Show item fa_icon if set
4338
- (value.fa_icon !== '' ? '<i class="'+value.fa_icon+' mr-1"></i>' : '') +
4339
4337
// Prepare item info
4340
- '<span class="list-item-clicktoshow' + (value.rights === 10 ? '' : ' pointer') + '" data-item-id="' + value.item_id + '" data-item-key="' + value.item_key + '">' +
4341
- '<span class="list-item-row-description' + (value.rights === 10 ? ' font-weight-light' : '') + '"><i class="item-favorite-star fa-solid' + ((store.get('teampassApplication').highlightFavorites === 1 && value.is_favourited === 1) ? ' fa-star mr-1' : '') + '"></i>' + value.label + '</span>' + (value.rights === 10 ? '' : description) +
4338
+ '<span class="list-item-clicktoshow d-inline-flex' + (value.rights === 10 ? '' : ' pointer') + '" data-item-id="' + value.item_id + '" data-item-key="' + value.item_key + '">' +
4339
+ // Show item fa_icon if set
4340
+ (value.fa_icon !== '' ? '<i class="'+value.fa_icon+' mr-1 user-fa-icon"></i>' : '') +
4341
+ '<span class="list-item-row-description d-inline-block' + (value.rights === 10 ? ' font-weight-light' : '') + '"><i class="item-favorite-star fa-solid' + ((store.get('teampassApplication').highlightFavorites === 1 && value.is_favourited === 1) ? ' fa-star mr-1' : '') + '"></i>' + value.label + '</span>' + (value.rights === 10 ? '' : description) +
4342
+ '<span class="list-item-row-description-extend"></span>' +
4342
4343
'</span>' +
4343
4344
'<span class="list-item-actions hidden">' +
4344
4345
(value.rights === 10 ?
@@ -6484,7 +6485,9 @@ function prepareFolderDragNDrop()
6484
6485
$(this).addClass('bg-warning');
6485
6486
},
6486
6487
helper: function(event) {
6487
- return $('<div class="bg-gray p-2 font-weight-light">' + $(this).find('.list-item-row-description').text() + '</div>');
6488
+ return $('<div>')
6489
+ .addClass('bg-gray p-2 font-weight-light')
6490
+ .text($(this).find('.list-item-row-description').text());
6488
6491
}
6489
6492
});
6490
6493
$('.folder').droppable({
0 commit comments