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