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

Make the logo clickable #51

This commit is contained in:
Roni Laukkarinen 2019-09-30 19:50:15 +03:00
commit 33b8e703c5
3 changed files with 1809 additions and 1430 deletions

3223
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -60,9 +60,10 @@
[:nav.navbar.is-fixed-top.is-dark {:role "navigation", :aria-label "search and navigation"} [:nav.navbar.is-fixed-top.is-dark {:role "navigation", :aria-label "search and navigation"}
;; user is `nil` when we're not logged in, we can hide the extended navigation ;; user is `nil` when we're not logged in, we can hide the extended navigation
[:div.navbar-brand [:div.navbar-brand
[:div.navbar-item>img {:src logo-url}] [:div.navbar-item
[:a {:href (url-for ::routes/library)} [:img {:src logo-url}]]
[:div.navbar-burger.burger {:on-click toggle-navbar-active!} [:div.navbar-burger.burger {:on-click toggle-navbar-active!}
(for [idx (range 3)] ^{:key (str "burger-" idx)} [:span])]] (for [idx (range 3)] ^{:key (str "burger-" idx)} [:span])]]]
(when user (when user
[(if @navbar-active? :div.navbar-menu.is-active :div.navbar-menu) [(if @navbar-active? :div.navbar-menu.is-active :div.navbar-menu)
[:div.navbar-start [:div.navbar-start

View file

@ -354,3 +354,8 @@ tr.sortable-is-moving.is-playing
a, strong, td.song-duration, td.sort-handle span a, strong, td.song-duration, td.sort-handle span
color: currentColor color: currentColor
// Navigation fixes
.navbar-brand > .navbar-item > a
display: flex
align-items: center