posts: fix favorite icon.
Fix the favorite button using the outlined heart icon instead of the solid heart icon.
This commit is contained in:
@@ -4,7 +4,7 @@ class PostPreviewComponent < ApplicationComponent
|
||||
with_collection_parameter :post
|
||||
|
||||
attr_reader :post, :tags, :show_deleted, :show_cropped, :link_target, :pool, :pool_id, :favgroup_id, :similarity, :recommended, :compact, :size, :current_user, :options
|
||||
delegate :external_link_to, :time_ago_in_words_tagged, :favorite_icon, to: :helpers
|
||||
delegate :external_link_to, :time_ago_in_words_tagged, :empty_heart_icon, to: :helpers
|
||||
|
||||
def initialize(post:, tags: "", show_deleted: false, show_cropped: true, link_target: post, pool: nil, pool_id: nil, favgroup_id: nil, similarity: nil, recommended: nil, compact: nil, size: nil, current_user: CurrentUser.user, **options)
|
||||
@post = post
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
<%= link_to recommended_posts_path(search: { post_id: post.id }), class: "more-recommended-posts", "data-post-id": post.id do %>
|
||||
<%= post.fav_count %>
|
||||
|
||||
<%= favorite_icon(class: "fa-xs") %>
|
||||
<%= empty_heart_icon(class: "fa-xs") %>
|
||||
|
||||
<br>more »
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user