From ae7360d693aaa2aacd99b710a0474c232075261e Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Sun, 18 Feb 2024 19:23:17 +0100 Subject: feat(frontend): add close player menu entry in audio player --- src/frontend/tubo/components/audio_player.cljs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/frontend/tubo/components/audio_player.cljs b/src/frontend/tubo/components/audio_player.cljs index 8935a0d..d69f232 100644 --- a/src/frontend/tubo/components/audio_player.cljs +++ b/src/frontend/tubo/components/audio_player.cljs @@ -132,8 +132,9 @@ {:label "Add to playlist" :icon [:i.fa-solid.fa-plus] :on-click #(rf/dispatch [::events/add-bookmark-list-modal - [bookmarks/add-to-bookmark-list-modal current-stream]])}] + [bookmarks/add-to-bookmark-list-modal current-stream]])} + {:label "Close player" + :icon [:i.fa-solid.fa-close] + :on-click #(rf/dispatch [::events/dispose-audio-player])}] :menu-styles {:bottom "0px" :top nil} - :extra-classes "pt-1 !pl-2 pr-2 "] - [player/button [:i.fa-solid.fa-close] #(rf/dispatch [::events/dispose-audio-player]) - :show-on-mobile? true]]]]))))) + :extra-classes "pt-1 !pl-2 pr-2 "]]]]))))) -- cgit v1.2.3