Skip to content

Commit

Permalink
Change aspect ratio... again
Browse files Browse the repository at this point in the history
  • Loading branch information
jahseng-lee committed Jun 1, 2024
1 parent b3a87d6 commit 8cdfcb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/uploaders/banner_image_uploader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class BannerImageUploader < Shrine

{
banner: magick.resize_to_fill!(1600, 400),
thumbnail: magick.resize_to_fill!(180, 360, gravity: "south-west"),
thumbnail: magick.resize_to_fill!(360, 360, gravity: "south-west"),
}
end
end
5 changes: 4 additions & 1 deletion app/views/search_locations/_location_search_section.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@
<img
src="<%= helper_location_thumbnail(location: location) %>"
class="search-result-img img-fluid rounded-start"
alt="Photo of <%= location.name_utf8 %>">
alt="Photo of <%= location.name_utf8 %>"
width="360"
height="360"
>
</div>
<div class="col-md-8">
<div class="card-body">
Expand Down

0 comments on commit 8cdfcb2

Please sign in to comment.