Skip to content

Commit

Permalink
Increase max height of preview card image (mastodon#5092)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
unarist authored and rutan committed Oct 11, 2017
1 parent 489866b commit bba5a9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/preview_card.rb
Expand Up @@ -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
Expand Down

0 comments on commit bba5a9b

Please sign in to comment.