Skip to content

Commit

Permalink
feat: put popover menu button next to related items title
Browse files Browse the repository at this point in the history
  • Loading branch information
migalmoreno committed Dec 3, 2024
1 parent 94c6817 commit f83ccc7
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/frontend/tubo/stream/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@
service-color @(rf/subscribe [:service-color])]
(when show?
(if show-comments-loading
[layout/loading-icon service-color "text-2xl"]
[:div.h-44.flex.items-center
[layout/loading-icon service-color "text-2xl"]]
(when (and show-comments comments-page)
[comments/comments comments-page stream])))))

Expand All @@ -120,9 +121,8 @@
(when (and show? (seq related-streams))
[:div
[:div.flex.flex-wrap.items-center.justify-between.mt-8.min-w-full
[:div.flex.gap-2.items-center
[:span.font-semibold.text-xl "Next Up"]]
[:div.flex.gap-x-4
[:div.flex.gap-x-4.items-center
[:span.font-semibold.text-xl "Next Up"]
[layout/popover-menu !menu-active?
[{:label "Add to queue"
:icon [:i.fa-solid.fa-headphones]
Expand All @@ -133,8 +133,9 @@
:icon [:i.fa-solid.fa-plus]
:on-click #(rf/dispatch [:modals/open
[modals/add-to-bookmark
related-streams]])}]]
[items/layout-switcher !layout]]
related-streams]])}]
:menu-styles {:bottom "30px" :top nil :left "20px" :right nil}]]
[items/layout-switcher !layout]
[items/related-streams related-streams nil !layout]]])))))

(defn stream
Expand Down

0 comments on commit f83ccc7

Please sign in to comment.