Tidy harvest#index

This commit is contained in:
Brenda Wallace
2019-05-24 20:14:47 +12:00
parent 20fbec96d4
commit b4b1a97a2a
2 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@
flex-wrap: wrap;
.card {
max-width: 200px;
width: 200px;
margin: 1em;
}
}

View File

@@ -1,7 +1,7 @@
.card
= link_to harvest do
= image_tag harvest_image_path(harvest, full_size: true), alt: harvest, class: 'img-fluid card-img-top'
.card-body.text-center
= image_tag harvest_image_path(harvest, full_size: true), alt: harvest, class: 'img-card'
.card-body
%h5
%strong= link_to "#{harvest.crop} #{harvest.plant_part}", harvest
%span.badge.badge-pill.badge-info= link_to harvest.plant_part, harvest.plant_part