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:
evazion
2019-10-14 21:16:04 -05:00
parent 5b0c77d126
commit f7116ad1c4
5 changed files with 9 additions and 4 deletions

View File

@@ -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>