From 618f0ff90ac48eabf9dfbf573ce0941e8dea50bd Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Sun, 10 Mar 2024 23:25:36 +0100 Subject: fix(frontend): fix spurious visual jump on add to favorites item --- src/frontend/tubo/components/audio_player.cljs | 2 +- src/frontend/tubo/components/items.cljs | 2 +- src/frontend/tubo/views/stream.cljs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/frontend/tubo/components/audio_player.cljs b/src/frontend/tubo/components/audio_player.cljs index b7d3c69..337d4d6 100644 --- a/src/frontend/tubo/components/audio_player.cljs +++ b/src/frontend/tubo/components/audio_player.cljs @@ -128,7 +128,7 @@ [{:label (if liked? "Remove favorite" "Favorite") :icon (if liked? [:i.fa-solid.fa-heart {:style {:color service-color}}] - [:i.fa-regular.fa-heart]) + [:i.fa-solid.fa-heart]) :on-click #(rf/dispatch [(if liked? ::events/remove-from-likes ::events/add-to-likes) current-stream])} {:label "Add to playlist" :icon [:i.fa-solid.fa-plus] diff --git a/src/frontend/tubo/components/items.cljs b/src/frontend/tubo/components/items.cljs index 0852156..fa17000 100644 --- a/src/frontend/tubo/components/items.cljs +++ b/src/frontend/tubo/components/items.cljs @@ -25,7 +25,7 @@ {:label (if liked? "Remove favorite" "Favorite") :icon (if liked? [:i.fa-solid.fa-heart {:style {:color (util/get-service-color service-id)}}] - [:i.fa-regular.fa-heart]) + [:i.fa-solid.fa-heart]) :on-click #(rf/dispatch [(if liked? ::events/remove-from-likes ::events/add-to-likes) item])} (if (some #(= (:url %) url) (:items (first (filter #(= (:id %) bookmark-id) bookmarks)))) {:label "Remove from playlist" diff --git a/src/frontend/tubo/views/stream.cljs b/src/frontend/tubo/views/stream.cljs index 3c013f0..7ee00f8 100644 --- a/src/frontend/tubo/views/stream.cljs +++ b/src/frontend/tubo/views/stream.cljs @@ -68,7 +68,7 @@ {:label (if liked? "Remove favorite" "Favorite") :icon (if liked? [:i.fa-solid.fa-heart {:style {:color (util/get-service-color service-id)}}] - [:i.fa-regular.fa-heart]) + [:i.fa-solid.fa-heart]) :on-click #(rf/dispatch [(if liked? ::events/remove-from-likes ::events/add-to-likes) stream])} {:label "Original" :link {:route url :external? true} -- cgit v1.2.3