Use resize_to_limit to avoid stretching images
This commit is contained in:
parent
53911f226d
commit
b70a9f1a07
7 changed files with 13 additions and 13 deletions
|
|
@ -16,8 +16,8 @@
|
|||
- @current_users_screenshots.each do |screenshot|
|
||||
.column
|
||||
|
||||
a.black.fancybox href=rails_representation_url(screenshot.image.variant(resize: "800x600", timestamp: false))
|
||||
a.black.fancybox href=rails_representation_url(screenshot.image.variant(resize_to_limit: "800x600", timestamp: false))
|
||||
div.grid-thumbnail
|
||||
= image_tag(screenshot.image.variant(resize: "160x120"), alt: screenshot.caption, class: 'thumbnail')
|
||||
= image_tag(screenshot.image.variant(resize_to_limit: "160x120"), alt: screenshot.caption, class: 'thumbnail')
|
||||
div
|
||||
= screenshot.description
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue