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:
parent
3de5560907
commit
cbad101f26
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue