From b013d5e1a7a10d77752d623dbcdf27b56c91e4d3 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Thu, 2 Mar 2023 19:01:24 +1100 Subject: [PATCH] Fix margins on photos --- app/templates/shared/_photo_post.html.slim | 2 +- app/templates/site/home.html.slim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/templates/shared/_photo_post.html.slim b/app/templates/shared/_photo_post.html.slim index 3341d2c..e4b278e 100644 --- a/app/templates/shared/_photo_post.html.slim +++ b/app/templates/shared/_photo_post.html.slim @@ -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"]}" diff --git a/app/templates/site/home.html.slim b/app/templates/site/home.html.slim index 81dc3a8..da73d82 100644 --- a/app/templates/site/home.html.slim +++ b/app/templates/site/home.html.slim @@ -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