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

Make progress bar take up all available space

This commit is contained in:
Arne Schlüter 2018-06-03 17:02:44 +02:00
commit 59d9938df0
2 changed files with 9 additions and 1 deletions

View file

@ -10,8 +10,9 @@
(defn current-song-info [{:keys [item status]}]
[:article
[:div (:artist item) " - " (:title item)]
;; FIXME: Sometimes items don't have a duration
[:progress.progress.is-tiny {:value (:current-time status)
:max (:duration item)}]])
:max (:duration item)}]])
(defn playback-controls [is-playing?]
;; TODO: Toggle play pause icon based on playback status

View file

@ -38,6 +38,13 @@
padding-left: .5rem
padding-right: .5rem
.media
flex-grow: 1
align-items: center
progress
width: 100%
.progress.is-tiny
height: .25rem