@@ -481,10 +481,9 @@ <h3 style="margin: 0; display: flex; align-items: center; gap: 0.5rem;">
481481 </ form >
482482 </ div >
483483 </ div >
484- < div style ="height: 4px; background: var(--bg); border-radius: 2px; overflow: hidden; position: relative; " class ="adj-progress-box ">
485- < div class ="progress-bar-adj " data-start ="{{.CurrentFileTime.Unix}} " data-duration ="{{.CurrentFileDuration.Seconds}} " style ="height: 100%; background: var(--primary); width: 0%; transition: width 1s linear; "> </ div >
486- </ div >
487- < div style ="display: flex; justify-content: space-between; margin-top: 0.4rem; font-size: 0.7rem; color: var(--text-dim); font-family: monospace; ">
484+ < div style ="height: 4px; background: var(--bg); border-radius: 2px; overflow: hidden; position: relative; " class ="adj-progress-box ">
485+ < div class ="progress-bar-adj " data-start ="{{.CurrentFileTime.Unix}} " data-duration ="{{.CurrentFileDuration.Seconds}} " style ="height: 100%; background: var(--primary); width: 0%; transition: none; "> </ div >
486+ </ div > < div style ="display: flex; justify-content: space-between; margin-top: 0.4rem; font-size: 0.7rem; color: var(--text-dim); font-family: monospace; ">
488487 < span class ="progress-time-current "> 00:00</ span >
489488 < div style ="font-size: 0.7rem; color: var(--primary); font-family: monospace; ">
490489 Playlist: < span class ="adj-pos "> {{.CurrentPos}}</ span > / < span class ="adj-len "> {{len .Playlist}}</ span >
@@ -1351,16 +1350,8 @@ <h2>Edit AutoDJ</h2>
13511350 if ( adjDetails ) adjDetails . style . display = 'block' ;
13521351 if ( songTitle ) songTitle . textContent = st . song || 'Preparing...' ;
13531352 if ( progressBar ) {
1354- if ( progressBar . dataset . start != st . start_time ) {
1355- progressBar . style . transition = 'none' ;
1356- progressBar . style . width = '0%' ;
1357- progressBar . dataset . start = st . start_time ;
1358- progressBar . dataset . duration = st . duration ;
1359- progressBar . offsetHeight ; // Force reflow
1360- progressBar . style . transition = 'width 1s linear' ;
1361- } else {
1362- progressBar . dataset . duration = st . duration ;
1363- }
1353+ progressBar . dataset . start = st . start_time ;
1354+ progressBar . dataset . duration = st . duration ;
13641355 }
13651356 } else {
13661357 statusPill . classList . add ( 'inactive' ) ;
0 commit comments