dashboard - thinner border around Aushänge, no loading animation if all Aushänge fit in one view
This commit is contained in:
@@ -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' });
|
||||
|
||||
Reference in New Issue
Block a user