large file name marquee speed normalization

toast
Kit Kasune 3 years ago
parent 2d6668a5b4
commit 2e11aeb17a
  1. 1
      scripts/fileview/load/render.js

@ -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);

Loading…
Cancel
Save