Fix margins on photos

This commit is contained in:
2023-03-02 19:01:24 +11:00
parent a2d3f5efcf
commit b013d5e1a7
2 changed files with 2 additions and 2 deletions

View File

@@ -1,3 +1,3 @@
div class="rounded max-w-xs"
a href="#{post.permalink}"
img class="rounded object-cover hover:opacity-80 h-48 w-48 mr-4 mb-4" src="#{post.photos[0]["value"]}" alt="#{post.photos[0]["alt"]}"
img class="rounded object-cover hover:opacity-80 h-48 w-48" src="#{post.photos[0]["value"]}" alt="#{post.photos[0]["alt"]}"

View File

@@ -24,7 +24,7 @@ div class="flex max-w-prose mx-auto"
h2 class="text-l text-gray-600 dark:text-gray-200" Photos
a class="text-right flex-1 text-blue-400 dark:text-blue-200 hover:text-blue-600" href="/photos" See all →
div class="grid grid-cols-3 gap-4 mb-4 max-w-prose mx-auto"
div class="grid grid-cols-3 gap-4 max-w-prose mx-auto"
- photo_posts.each do |post|
== render :photo_post, post: post