Skip to content
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

Merged
merged 1 commit into from
Feb 7, 2020

Conversation

elia
Copy link
Member

@elia elia commented Jan 29, 2020

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:

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have updated Guides and README accordingly to this change (if needed)
  • I have added tests to cover this change (if needed)
  • I have attached screenshots to this PR for visual changes (if needed)

Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @elia!

Copy link
Member

@spaghetticode spaghetticode left a 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:
Copy link
Member

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):

Copy link
Member

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.
@elia
Copy link
Member Author

elia commented Feb 4, 2020

@kennyadsl @spaghetticode thanks for the comment!
I added a comment in the code block specifying those are coming from Solidus pre 2.9.

Copy link
Member

@spaghetticode spaghetticode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 thank you @elia

@spaghetticode spaghetticode merged commit 5958af2 into solidusio:master Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants