Skip to content

Commit 4d1ece1

Browse files
author
Datanoise
committed
feat: disable track progress easing and fix playlist addition reload flow
1 parent 261c409 commit 4d1ece1

8 files changed

Lines changed: 16 additions & 14 deletions

File tree

server/templates/admin.html

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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');
8.28 KB
Loading
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Page snapshot
2+
3+
```yaml
4+
- generic [ref=e2]: "{\"detail\":\"Not Found\"}"
5+
```
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Page snapshot
2+
3+
```yaml
4+
- generic [ref=e2]: "{\"detail\":\"Not Found\"}"
5+
```
8.28 KB
Loading

tinyice.pid

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
40921

0 commit comments

Comments
 (0)