-
Notifications
You must be signed in to change notification settings - Fork 10
Bootstrap 3 media object #17
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
Conversation
nadar
left a 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.
In general i appreciate this solution, as it sticks more to bootstrap styles. The only thing which could be against this change: There is no option for the margin anymore (cfgValue: margin)
| 'width' => $this->cfgValue('width', null), | ||
| 'height' => $this->cfgValue('height', null), | ||
| 'style' => (($this->varValue('imagePosition', 'left') == 'left') ? "margin-right:{$this->cfgValue('margin', '20px')}" : "margin-left:{$this->cfgValue('margin', '20px')}") . $this->cfgValue('margin', '20px', ';margin-bottom:{{margin}};'), | ||
| 'style' => $this->extraValue('imagePosition') . $this->cfgValue('margin', '20px', ';margin-bottom:{{margin}};'), |
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.
@boehsermoe e.g. here
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.
The 20px is just the default value. Do u think it is better to make a constant for it?
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.
I thought there is a class like m-l-2 like in the BS4 and others but there is not..
maybe just leave it like that, sry didin´t used BS3 for a long time.
In general, it´s always good to avoid hardcoded values, but your PR makes it better than before .. thank you. for me it´s fine from FE side
|
I am good, lets wait for @TheMaaarc (https://github.com/luyadev/luya/blob/master/docs/misc/organisation.md#6-roles ;-)) |
TheMaaarc
left a 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.
Changes look good to me!
|
@boehsermoe its my fault, but now all unit tests are failing due to changed code. But as there is no CI server setup, we missed this point. |
https://getbootstrap.com/docs/3.3/components/#media-default