Skip to content

Commit

Permalink
Remove additional space from general search for comments that contain…
Browse files Browse the repository at this point in the history
… links (decidim#13645)

* Removed additional space from comments search section

* Resolved comment

* Fix test

* Added space between title and author
  • Loading branch information
andra-panaite authored Nov 15, 2024
1 parent 09fcea7 commit 093d48d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions decidim-core/app/cells/decidim/card_s/show.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<%= link_to resource_path, class: "card__search", id: dom_id(resource) do %>
<%= content_tag :div, id: dom_id(resource), class: "card__search" do %>
<%= content_tag title_tag, class: "h4 card__search-title" do %>
<%= title %>
<%= link_to resource_path, class: "card__search" do %>
<%= title %>
<% end %>
<% end %>
<% if metadata_cell.present? %>
<div class="card__search-metadata">
<%= cell metadata_cell, resource, links: false %>
<%= cell metadata_cell, resource, links: false %>
</div>
<% end %>
<% end %>
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module Decidim::Meetings

context "when rendering" do
it "renders the card" do
expect(subject).to have_css("#meeting_#{meeting.id}.card__search")
expect(subject).to have_css("div#meeting_#{meeting.id}")
end
end

Expand Down

0 comments on commit 093d48d

Please sign in to comment.