Skip to content

Commit

Permalink
Merge pull request #7722 from fjordllc/feature/constantize-size-of-th…
Browse files Browse the repository at this point in the history
…umbnails-in-portfolio

ポートフォリオのサムネイル画像のトリミング方法を変更
  • Loading branch information
komagata authored May 28, 2024
2 parents 26d6616 + 67ae8d7 commit 1050883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/work.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Work < ApplicationRecord

def thumbnail_url
if thumbnail.attached?
thumbnail.variant(resize_to_limit: THUMBNAIL_SIZE).processed.url
thumbnail.variant(resize_to_fill: THUMBNAIL_SIZE).processed.url
else
image_url('/images/works/thumbnails/default.png')
end
Expand Down

0 comments on commit 1050883

Please sign in to comment.