aboutsummaryrefslogtreecommitdiff
path: root/src/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend')
-rw-r--r--src/frontend/tubo/components/audio_player.cljs2
-rw-r--r--src/frontend/tubo/components/items.cljs2
-rw-r--r--src/frontend/tubo/components/layout.cljs2
-rw-r--r--src/frontend/tubo/views/bookmarks.cljs4
-rw-r--r--src/frontend/tubo/views/channel.cljs2
-rw-r--r--src/frontend/tubo/views/playlist.cljs2
-rw-r--r--src/frontend/tubo/views/stream.cljs4
7 files changed, 9 insertions, 9 deletions
diff --git a/src/frontend/tubo/components/audio_player.cljs b/src/frontend/tubo/components/audio_player.cljs
index ce30b0a..b7d3c69 100644
--- a/src/frontend/tubo/components/audio_player.cljs
+++ b/src/frontend/tubo/components/audio_player.cljs
@@ -124,7 +124,7 @@
[player/button [:i.fa-solid.fa-list] #(rf/dispatch [::events/toggle-media-queue])
:show-on-mobile? true
:extra-classes "pl-4 pr-3"]
- [layout/more-menu !menu-active?
+ [layout/popover-menu !menu-active?
[{:label (if liked? "Remove favorite" "Favorite")
:icon (if liked?
[:i.fa-solid.fa-heart {:style {:color service-color}}]
diff --git a/src/frontend/tubo/components/items.cljs b/src/frontend/tubo/components/items.cljs
index 3b9b7ca..0852156 100644
--- a/src/frontend/tubo/components/items.cljs
+++ b/src/frontend/tubo/components/items.cljs
@@ -57,7 +57,7 @@
(when (and uploader-url verified?)
[:i.fa-solid.fa-circle-check])]
(when-not (empty? (remove nil? items))
- [layout/more-menu !menu-active? items])]
+ [layout/popover-menu !menu-active? items])]
(when (and subscriber-count (not stream?))
[:div.flex.items-center
[:i.fa-solid.fa-users.text-xs]
diff --git a/src/frontend/tubo/components/layout.cljs b/src/frontend/tubo/components/layout.cljs
index 19adcc1..ae6f5ab 100644
--- a/src/frontend/tubo/components/layout.cljs
+++ b/src/frontend/tubo/components/layout.cljs
@@ -145,7 +145,7 @@
(for [[i item] (map-indexed vector (remove nil? items))]
^{:key i} [menu-item item])]))
-(defn more-menu
+(defn popover-menu
[!menu-active? items & {:keys [menu-styles extra-classes]}]
[:div.flex.items-center
[focus-overlay #(reset! !menu-active? false) @!menu-active? true]
diff --git a/src/frontend/tubo/views/bookmarks.cljs b/src/frontend/tubo/views/bookmarks.cljs
index 78959c4..e1a0ed8 100644
--- a/src/frontend/tubo/views/bookmarks.cljs
+++ b/src/frontend/tubo/views/bookmarks.cljs
@@ -32,7 +32,7 @@
:bookmark-id (:id %)) bookmarks)]
[layout/content-container
[layout/content-header "Bookmarks"
- [layout/more-menu !menu-active?
+ [layout/popover-menu !menu-active?
[{:label "Create playlist"
:icon [:i.fa-solid.fa-plus]
:on-click #(rf/dispatch [::events/open-modal [add-bookmark-modal]])}]]]
@@ -49,7 +49,7 @@
[layout/content-container
[layout/content-header name
(when-not (empty? items)
- [layout/more-menu !menu-active?
+ [layout/popover-menu !menu-active?
[{:label "Add to queue"
:icon [:i.fa-solid.fa-headphones]
:on-click #(rf/dispatch [::events/enqueue-related-streams items])}]])]
diff --git a/src/frontend/tubo/views/channel.cljs b/src/frontend/tubo/views/channel.cljs
index f55653a..30eab12 100644
--- a/src/frontend/tubo/views/channel.cljs
+++ b/src/frontend/tubo/views/channel.cljs
@@ -33,7 +33,7 @@
[:i.fa-solid.fa-users.text-xs]
[:span.mx-2 (.toLocaleString subscriber-count)]])]]
(when related-streams
- [layout/more-menu !menu-active?
+ [layout/popover-menu !menu-active?
[{:label "Add to queue"
:icon [:i.fa-solid.fa-headphones]
:on-click #(rf/dispatch [::events/enqueue-related-streams related-streams])}]])]
diff --git a/src/frontend/tubo/views/playlist.cljs b/src/frontend/tubo/views/playlist.cljs
index a36dbf3..6782c0b 100644
--- a/src/frontend/tubo/views/playlist.cljs
+++ b/src/frontend/tubo/views/playlist.cljs
@@ -23,7 +23,7 @@
[:div.flex.flex-col.justify-center
[layout/content-header name
(when related-streams
- [layout/more-menu !menu-active?
+ [layout/popover-menu !menu-active?
[{:label "Add to queue"
:icon [:i.fa-solid.fa-headphones]
:on-click #(rf/dispatch [::events/enqueue-related-streams related-streams])}]])]
diff --git a/src/frontend/tubo/views/stream.cljs b/src/frontend/tubo/views/stream.cljs
index 93cd831..3c013f0 100644
--- a/src/frontend/tubo/views/stream.cljs
+++ b/src/frontend/tubo/views/stream.cljs
@@ -61,7 +61,7 @@
[:div.flex-auto
[:h1.text-lg.sm:text-2xl.font-nunito-bold.line-clamp-1 name]]
[:div.flex.flex-auto.justify-end.items-center
- [layout/more-menu !stream-menu-active?
+ [layout/popover-menu !stream-menu-active?
[{:label "Add to queue"
:icon [:i.fa-solid.fa-headphones]
:on-click #(rf/dispatch [::events/switch-to-audio-player stream])}
@@ -130,7 +130,7 @@
:on-open #(rf/dispatch [::events/toggle-stream-layout :show-related])
:open? (not show-related)
:left-icon "fa-solid fa-list"
- :right-button [layout/more-menu !suggested-menu-active?
+ :right-button [layout/popover-menu !suggested-menu-active?
[{:label "Add to queue"
:icon [:i.fa-solid.fa-headphones]
:on-click #(rf/dispatch [::events/enqueue-related-streams related-streams])}]]}