-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
Set img width/height attributes as an aspect ratio #940
Conversation
core-bundle/src/Resources/contao/templates/picture/picture_default.html5
Outdated
Show resolved
Hide resolved
Firefox 71 has been released. Do you want me to merge now? |
The |
d1d4545
to
4560027
Compare
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.
Another nice addition to Contao!
Thank you @ausi. |
@@ -31,6 +31,8 @@ | |||
*/ | |||
class PictureFactory implements PictureFactoryInterface | |||
{ | |||
const ASPECT_RATIO_THRESHOLD = 0.05; |
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.
@leofeyer can we mark this as private
when merging upstream?
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.
Done.
As discussed in #937