Skip to content

Show elapsed time in playing row

jedmund requested to merge jedmund/elapsed-time into main

Adds elapsed playback time next to the total duration in the currently-playing track row, separated by a / (e.g. 1:23 / 3:45).

  • FileList.svelte takes a new optional currentTime prop and renders formatElapsed(currentTime) / formatDuration(file.duration) only on the active row.
  • Both / and /random pass their existing currentTime state down to FileList.

Other rows continue to show only the total duration.

Merge request reports

Loading