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

Simplify audio player structure

This commit is contained in:
Arne Schlüter 2019-01-23 11:44:35 +01:00
commit 7c47d59f18
2 changed files with 17 additions and 17 deletions

View file

@ -95,14 +95,13 @@
playlist @(subscribe [:audio/playlist])
playback-status @(subscribe [:audio/playback-status])
is-playing? @(subscribe [:audio/is-playing?])]
[:nav.navbar.is-fixed-bottom.audio-player
[:div.navbar-menu.is-active
(if current-song
;; show song info, controls, progress bar, etc.
[:section.audio-interaction
[playback-info current-song playback-status]
[progress-indicators current-song playback-status]
[playback-controls is-playing?]
[playback-mode-controls playlist]]
;; not playing anything
[:p.navbar-item.idle-notification "No audio playing"])]]))
[:nav.audio-player
(if current-song
;; show song info, controls, progress bar, etc.
[:section.audio-interaction
[playback-info current-song playback-status]
[progress-indicators current-song playback-status]
[playback-controls is-playing?]
[playback-mode-controls playlist]]
;; not playing anything
[:p.navbar-item.idle-notification "No audio playing"])]))

View file

@ -18,18 +18,19 @@
+loader
// bottom bar
.has-navbar-bottom
.has-navbar-fixed-bottom
padding-bottom: 64px
.audio-player
+navbar-fixed
bottom: 0
// first clear some of that navigation styling
background-color: $dark
color: $light
color: $dark-invert
min-height: 64px
.navbar-menu
padding: 0
background-color: transparent
display: flex
align-items: center
// now off to the contents