style(pj-messagerie): same spacing as in PJ champ

This commit is contained in:
Colin Darie 2024-04-15 12:17:19 +02:00 committed by Kara Diaby
parent 5374100866
commit 3b7b18ef90
2 changed files with 5 additions and 8 deletions

View file

@ -49,9 +49,8 @@
}
}
.attachment-multiple.fr-downloads-group.destroyable {
ul {
list-style-type: none;
padding-inline-start: 0;
}
.attachment-multiple.fr-downloads-group.destroyable ul,
ul[data-file-input-reset-target='fileList'] {
list-style-type: none;
padding-inline-start: 0;
}

View file

@ -25,15 +25,13 @@ export class FileInputResetController extends ApplicationController {
Array.from(files).forEach((file, index) => {
const container = document.createElement('li');
container.style.display = 'flex';
container.style.alignItems = 'center';
container.classList.add('flex', 'flex-gap-2', 'fr-mb-1w');
const deleteButton = this.createDeleteButton(deleteLabel, index);
container.appendChild(deleteButton);
const listItem = document.createElement('div');
listItem.textContent = file.name;
listItem.style.marginLeft = '8px';
container.appendChild(listItem);
this.fileListTarget.appendChild(container);