post previews: fix thumbnail width/height outside post index.
Normally thumbnails have a fixed size of 154x154, but that's not always desirable outside of the posts index because it creates empty gaps around thumbnails.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<p class="fineprint">Found <%= pluralize(@matches.length, "similar post") %>:</p>
|
||||
|
||||
<% @matches.each do |match| %>
|
||||
<%= PostPresenter.preview(match["post"], :tags => "status:any", :similarity => match["score"], :size => true) %>
|
||||
<%= PostPresenter.preview(match["post"], tags: "status:any", similarity: match["score"], size: true, compact: true) %>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<h3>Similar Posts</h3>
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
<div class="post-tooltip-body <%= "has-preview" if params[:preview].truthy? %>">
|
||||
<div class="post-tooltip-body-left">
|
||||
<% if params[:preview].truthy? %>
|
||||
<%= PostPresenter.preview(@post, show_deleted: true) %>
|
||||
<%= PostPresenter.preview(@post, show_deleted: true, compact: true) %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user