style(pj-messagerie): same spacing as in PJ champ
This commit is contained in:
parent
5374100866
commit
3b7b18ef90
2 changed files with 5 additions and 8 deletions
|
@ -49,9 +49,8 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.attachment-multiple.fr-downloads-group.destroyable {
|
.attachment-multiple.fr-downloads-group.destroyable ul,
|
||||||
ul {
|
ul[data-file-input-reset-target='fileList'] {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
padding-inline-start: 0;
|
padding-inline-start: 0;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,15 +25,13 @@ export class FileInputResetController extends ApplicationController {
|
||||||
|
|
||||||
Array.from(files).forEach((file, index) => {
|
Array.from(files).forEach((file, index) => {
|
||||||
const container = document.createElement('li');
|
const container = document.createElement('li');
|
||||||
container.style.display = 'flex';
|
container.classList.add('flex', 'flex-gap-2', 'fr-mb-1w');
|
||||||
container.style.alignItems = 'center';
|
|
||||||
|
|
||||||
const deleteButton = this.createDeleteButton(deleteLabel, index);
|
const deleteButton = this.createDeleteButton(deleteLabel, index);
|
||||||
container.appendChild(deleteButton);
|
container.appendChild(deleteButton);
|
||||||
|
|
||||||
const listItem = document.createElement('div');
|
const listItem = document.createElement('div');
|
||||||
listItem.textContent = file.name;
|
listItem.textContent = file.name;
|
||||||
listItem.style.marginLeft = '8px';
|
|
||||||
|
|
||||||
container.appendChild(listItem);
|
container.appendChild(listItem);
|
||||||
this.fileListTarget.appendChild(container);
|
this.fileListTarget.appendChild(container);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue