fix(ticker/pdf): ralentissement ticker à 18 car/s et correction troncature table PDF via truncateToWidth
This commit is contained in:
+1
-1
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user