|
|
@ -33,6 +33,7 @@ module.exports = (dir) => { |
|
|
|
cf.className = 'file-name'; |
|
|
|
cf.className = 'file-name'; |
|
|
|
if (file.name.length > 20) { |
|
|
|
if (file.name.length > 20) { |
|
|
|
cf.classList.add('large-file-name'); |
|
|
|
cf.classList.add('large-file-name'); |
|
|
|
|
|
|
|
cf.style.animationDuration = `${file.name.length / 2}s`; |
|
|
|
let lfnc = document.createElement('div'); |
|
|
|
let lfnc = document.createElement('div'); |
|
|
|
lfnc.className = 'large-file-name-container'; |
|
|
|
lfnc.className = 'large-file-name-container'; |
|
|
|
cfc.appendChild(lfnc); |
|
|
|
cfc.appendChild(lfnc); |
|
|
|