-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update images sizes to the new defaults #3493
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @elia!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@elia thank you 👍 I left a non-blocking note, hope it makes sense!
large=>"600x600>" | ||
} | ||
>> Spree::Image.attachment_definitions[:attachment][:styles] | ||
=> {:mini=>"48x48>", :small=>"400x400>", :product=>"680x680>", :large=>"1200x1200>"} | ||
``` | ||
|
||
The default sizes can be changed in an initializer. For example, in your | ||
`config/initializers/paperclip.rb` file. You can set new defaults like this: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to make it super clear that those were the old defaults? For example by changing the wording to something like:
You can set new defaults like this (these were the default values for Solidus up to version 2.9.x):
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@spaghetticode that's a great suggestion, it makes total sense for me. @elia thoughts?
Let the customization example use the old pre 2.10 defaults to make it easier to copy/paste the code for people landing on this page from the 2.10 changelog.
@kennyadsl @spaghetticode thanks for the comment! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 thank you @elia
Description
Let the customization example use the old pre 2.10 defaults to make it
easier to copy/paste the code for people landing on this page from the
2.10 changelog.
Checklist: