Show elapsed time in playing row
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.sveltetakes a new optionalcurrentTimeprop and rendersformatElapsed(currentTime) / formatDuration(file.duration)only on the active row. - Both
/and/randompass their existingcurrentTimestate down toFileList.
Other rows continue to show only the total duration.