From 6fe0dbafec894f839d3c8a43c8f1196d8d7ee16e Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Tue, 3 Dec 2024 14:40:49 +0100 Subject: feat: remove popup menu default menu styles --- src/frontend/tubo/channel/views.cljs | 3 ++- src/frontend/tubo/layout/views.cljs | 3 +-- src/frontend/tubo/playlist/views.cljs | 3 ++- src/frontend/tubo/stream/views.cljs | 1 + 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/frontend/tubo/channel/views.cljs b/src/frontend/tubo/channel/views.cljs index d9dee61..a4b7b1e 100644 --- a/src/frontend/tubo/channel/views.cljs +++ b/src/frontend/tubo/channel/views.cljs @@ -20,7 +20,8 @@ :icon [:i.fa-solid.fa-plus] :on-click #(rf/dispatch [:modals/open [modals/add-to-bookmark - related-streams]])}]])))) + related-streams]])}] + :menu-styles {:top "15px" :right "30px"}])))) (defn metadata [{:keys [avatars name subscriber-count] :as channel}] diff --git a/src/frontend/tubo/layout/views.cljs b/src/frontend/tubo/layout/views.cljs index 4f8aeb0..4187ec6 100644 --- a/src/frontend/tubo/layout/views.cljs +++ b/src/frontend/tubo/layout/views.cljs @@ -171,8 +171,7 @@ (defn popover-menu [!menu-active? items & - {:keys [menu-styles extra-classes] - :or {menu-styles {:right "25px"} extra-classes [:p-3]}}] + {:keys [menu-styles extra-classes] :or {extra-classes [:p-3]}}] [:div.flex.items-center [focus-overlay #(reset! !menu-active? false) @!menu-active? true] [:button.focus:outline-none.relative diff --git a/src/frontend/tubo/playlist/views.cljs b/src/frontend/tubo/playlist/views.cljs index 94b1d8c..09fe2a0 100644 --- a/src/frontend/tubo/playlist/views.cljs +++ b/src/frontend/tubo/playlist/views.cljs @@ -20,7 +20,8 @@ :icon [:i.fa-solid.fa-plus] :on-click #(rf/dispatch [:modals/open [modals/add-to-bookmark - related-streams]])}]])))) + related-streams]])}] + :menu-styles {:top "15px" :right "30px"}])))) (defn playlist [_] diff --git a/src/frontend/tubo/stream/views.cljs b/src/frontend/tubo/stream/views.cljs index a2ee754..6ef690f 100644 --- a/src/frontend/tubo/stream/views.cljs +++ b/src/frontend/tubo/stream/views.cljs @@ -40,6 +40,7 @@ :icon [:i.fa-solid.fa-plus] :on-click #(rf/dispatch [:modals/open [modals/add-to-bookmark stream]])}] + :menu-styles {:top "15px" :right "30px"} :extra-classes ["p-3" "lg:p-0"]])))) (defn metadata-uploader -- cgit v1.2.3