dashboard - thinner border around Aushänge, no loading animation if all Aushänge fit in one view

This commit is contained in:
2026-09-06 05:42:27 +02:00
parent 055b6d10c4
commit 7d3f99c7b8
2 changed files with 5 additions and 4 deletions
@@ -203,9 +203,10 @@
clearTimeout(this.timer);
if (!this.rotate) return;
const duration = this.items.length ? config.POSTER_MIN_DWELL_TIME_S * 1000 : config.EMPTY_REFRESH_MS;
const changing = this.items.length && this.layout().groups.length > 1;
this.progressAnimation?.cancel();
this.progress.toggleAttribute('hidden', !this.items.length);
if (this.items.length) {
this.progress.toggleAttribute('hidden', !changing);
if (changing) {
this.progressAnimation = this.progress.querySelector('.poster-progress-value').animate(
[{ strokeDashoffset: 100 }, { strokeDashoffset: 0 }],
{ duration, easing: 'linear', fill: 'forwards' });