workign kaban board
This commit is contained in:
@@ -233,10 +233,10 @@
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
gap: 12px !important;
|
||||
width: 190px !important;
|
||||
min-width: 190px !important;
|
||||
height: 56px !important;
|
||||
min-height: 56px !important;
|
||||
width: 210px !important;
|
||||
min-width: 210px !important;
|
||||
height: 58px !important;
|
||||
min-height: 58px !important;
|
||||
padding: 0 22px !important;
|
||||
border: 1px solid rgba(134, 239, 172, 0.65) !important;
|
||||
border-radius: 18px !important;
|
||||
@@ -723,15 +723,16 @@
|
||||
const fileInput = event.target.closest('[data-helpdesk-file-input]');
|
||||
|
||||
if (fileInput) {
|
||||
const panel = fileInput.closest('details') || fileInput.closest('div');
|
||||
const panel = fileInput.closest('[data-helpdesk-ticket-attachment-form], [data-helpdesk-comment-form], details, form');
|
||||
const label = panel?.querySelector('[data-helpdesk-file-label]');
|
||||
const count = fileInput.files?.length || 0;
|
||||
const text = count === 0 ? 'No files selected' : `${count} file${count === 1 ? '' : 's'} selected`;
|
||||
const names = Array.from(fileInput.files || []).map((file) => file.name);
|
||||
|
||||
if (label) {
|
||||
label.textContent = text;
|
||||
label.textContent = count === 0
|
||||
? 'No files selected'
|
||||
: `${count} file${count === 1 ? '' : 's'} selected${names.length ? ': ' + names.join(', ') : ''}`;
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user