diff options
author | Miguel Ángel Moreno <mail@migalmoreno.com> | 2024-03-10 23:25:36 +0100 |
---|---|---|
committer | Miguel Ángel Moreno <mail@migalmoreno.com> | 2024-03-10 23:25:36 +0100 |
commit | 618f0ff90ac48eabf9dfbf573ce0941e8dea50bd (patch) | |
tree | 9d8cd2fada3a4959cdf07538f39f2d6e378499f0 /src/frontend | |
parent | ea4e8af97fa903da88f6e3139b4230e59b1bcea6 (diff) |
fix(frontend): fix spurious visual jump on add to favorites item
Diffstat (limited to 'src/frontend')
-rw-r--r-- | src/frontend/tubo/components/audio_player.cljs | 2 | ||||
-rw-r--r-- | src/frontend/tubo/components/items.cljs | 2 | ||||
-rw-r--r-- | src/frontend/tubo/views/stream.cljs | 2 |
3 files changed, 3 insertions, 3 deletions
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} |