From d663d0ffa3f2e91027b16bce15e4d9edcd9326a8 Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Sat, 20 Jan 2024 04:28:10 +0000 Subject: [PATCH] Drop use of h5 --- app/assets/stylesheets/_crops.scss | 2 +- app/views/crops/_thumbnail.html.haml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/_crops.scss b/app/assets/stylesheets/_crops.scss index 26fd86e8b..cbbdf41b7 100644 --- a/app/assets/stylesheets/_crops.scss +++ b/app/assets/stylesheets/_crops.scss @@ -19,7 +19,7 @@ padding-bottom: 0; } - h5.crop-sci-name { + .crop-sci-name { background-color: $beige; color: $black; font-size: 0.7em; diff --git a/app/views/crops/_thumbnail.html.haml b/app/views/crops/_thumbnail.html.haml index 749fca2dc..0566ada95 100644 --- a/app/views/crops/_thumbnail.html.haml +++ b/app/views/crops/_thumbnail.html.haml @@ -8,5 +8,6 @@ .text %h3.crop-name= link_to crop.name, crop_path(slug: crop.slug) - %h5.crop-sci-name - = crop.scientific_names.first + - if crop.scientific_names.any? + %div.crop-sci-name + = crop.scientific_names.first