Skip to content

Commit

Permalink
Keep aspect ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
gyllen committed Jun 1, 2011
1 parent 64dfde2 commit 1f3cf92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/admin/file_preview_helper.rb
Expand Up @@ -45,7 +45,7 @@ def typus_file_preview_for_carrierwave(attachment, options = {})
if !attachment.url.nil?
render "admin/helpers/file_preview",
:preview => attachment.url,
:thumb => "/thumb" + attachment.url + "?w=80&h=80",
:thumb => "/thumb" + attachment.url + "?w=80",
:options => options
else
"no image"
Expand Down

0 comments on commit 1f3cf92

Please sign in to comment.