diff options
author | Miguel Ángel Moreno <mail@migalmoreno.com> | 2024-02-18 19:23:17 +0100 |
---|---|---|
committer | Miguel Ángel Moreno <mail@migalmoreno.com> | 2024-02-18 19:23:17 +0100 |
commit | ae7360d693aaa2aacd99b710a0474c232075261e (patch) | |
tree | f42df40d3d55e11d159356472df129ce94c60002 /src | |
parent | 0815e49032bdf49bdc9ef7e6106edb2973ac3092 (diff) |
feat(frontend): add close player menu entry in audio player
Diffstat (limited to 'src')
-rw-r--r-- | src/frontend/tubo/components/audio_player.cljs | 9 |
1 files 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 "]]]]))))) |