Skip to content

Commit

Permalink
fix: center image in image card
Browse files Browse the repository at this point in the history
  • Loading branch information
santiago-dev96 committed Sep 1, 2020
1 parent a39f625 commit ffe0749
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/images/_image.html.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<div class="col-md-6">
<div class="border shadow p-3">
<div>
<div class="text-center">
<%= image_tag image.picture.url, class: 'img-thumbnail' %>
</div>
<div class="mt-2">
<h5 class="text-center"><%= image.name %></h5>
<h4 class="text-center"><%= image.name %></h4>
<dl class="border p-2 mt-3">
<dt>Author</dt>
<dd><%= image.user.email_username %></dd>
Expand Down

0 comments on commit ffe0749

Please sign in to comment.