From 2e11aeb17a6705939a03bb2df7502c3d73030121 Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Wed, 1 Dec 2021 08:49:19 -0700 Subject: [PATCH] large file name marquee speed normalization --- scripts/fileview/load/render.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/fileview/load/render.js b/scripts/fileview/load/render.js index 11c2f82..bc9be2a 100644 --- a/scripts/fileview/load/render.js +++ b/scripts/fileview/load/render.js @@ -33,6 +33,7 @@ module.exports = (dir) => { cf.className = 'file-name'; if (file.name.length > 20) { cf.classList.add('large-file-name'); + cf.style.animationDuration = `${file.name.length / 2}s`; let lfnc = document.createElement('div'); lfnc.className = 'large-file-name-container'; cfc.appendChild(lfnc);