fix(ticker/pdf): ralentissement ticker à 18 car/s et correction troncature table PDF via truncateToWidth

This commit is contained in:
2026-08-21 22:35:46 +01:00
parent dd0279ad09
commit 7599b98959
2 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -1684,7 +1684,7 @@ function updateTicker() {
`${x.r.region}${x.r.id_marche} : ${x.delai} jours restants`
).join(' • ');
content.textContent = text;
const duration = Math.min(70, Math.max(25, Math.ceil(text.length / 14)));
const duration = Math.min(100, Math.max(30, Math.ceil(text.length / 18)));
content.style.animationDuration = `${duration}s`;
ticker.classList.add('active');
document.body.classList.add('has-ticker');