Skip to content

Conversation

@boehsermoe
Copy link
Member

Copy link
Contributor

@nadar nadar left a 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}};'),
Copy link

Choose a reason for hiding this comment

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

@boehsermoe e.g. here

Copy link
Member Author

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?

Copy link

@dev7ch dev7ch Sep 1, 2018

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

@nadar
Copy link
Contributor

nadar commented Sep 1, 2018

Copy link
Member

@TheMaaarc TheMaaarc left a 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!

@TheMaaarc TheMaaarc merged commit 81522dc into luyadev:master Sep 2, 2018
@nadar
Copy link
Contributor

nadar commented Sep 3, 2018

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants