diff options
author | unarist <m.unarist@gmail.com> | 2017-09-26 00:10:49 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-09-25 17:10:49 +0200 |
commit | 5c82c2b75fb7fb0df9848596f8486f51ff4b3467 (patch) | |
tree | 3090d3df925070c14b3b7908ba414c2e797511d5 | |
parent | 0fea700c7be051ace98c2b3426531862c73565bb (diff) |
Increase max height of preview card image (#5092)
We added horizontal layout to preview card for wide image. However, max height of the thumbnail is still limited to 120px and it makes nearly square images to too small for that layout. This PR increases max height as well as max width.
-rw-r--r-- | app/models/preview_card.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/preview_card.rb b/app/models/preview_card.rb index b7efac354..e2bf65d94 100644 --- a/app/models/preview_card.rb +++ b/app/models/preview_card.rb @@ -32,7 +32,7 @@ class PreviewCard < ApplicationRecord has_and_belongs_to_many :statuses - has_attached_file :image, styles: { original: '280x120>' }, convert_options: { all: '-quality 80 -strip' } + has_attached_file :image, styles: { original: '280x280>' }, convert_options: { all: '-quality 80 -strip' } include Attachmentable include Remotable |