1
0
Fork 0
mirror of https://github.com/heyarne/airsonic-ui.git synced 2026-05-07 02:33:39 +02:00

Restrict progress bar to 100% max-width

This commit is contained in:
Arne Schlüter 2019-01-23 12:30:39 +01:00
commit cbad101f26

View file

@ -15,7 +15,7 @@
(dispatch [:audio-player/seek x-ratio])))
(defn- ratio->width [ratio]
(str (.toFixed (* 100 ratio) 2) "%"))
(str (.toFixed (min 100 (* 100 ratio)) 2) "%"))
(defn progress-indicators [song status]
(let [current-time (:current-time status)