Three thumbnails per row was pretty tight for most phones since the most common phone resolution is 360x640. Two thumbnails per row lets us have thumbnails up to 180x180 in size.
18 lines
473 B
Plaintext
18 lines
473 B
Plaintext
<div class="post-gallery post-gallery-<%= gallery_type %>">
|
|
<% if empty? %>
|
|
<p>No posts found.</p>
|
|
<% else %>
|
|
<div class="posts-container grid gap-1 grid-cols-2 md:block user-disable-cropped-<%= current_user.disable_cropped_thumbnails? %>">
|
|
<% posts.each do |post| -%>
|
|
<% %><%= post_preview(post, **options) -%>
|
|
<% end -%>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= footer %>
|
|
|
|
<% if has_paginator? %>
|
|
<%= numbered_paginator(posts) %>
|
|
<% end %>
|
|
</div>
|