Skip to content

Commit

Permalink
fix build on travis + pxpx in background for outlook
Browse files Browse the repository at this point in the history
  • Loading branch information
iRyusa committed Nov 28, 2016
1 parent 16d1cf7 commit f0e49a6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Expand Up @@ -49,7 +49,7 @@
"vars-on-top": 0,

"import/extensions": 0,
"import/imports-first": 0,
"import/first": 0,
"import/no-dynamic-require": 0,
"import/no-extraneous-dependencies": 0,
"import/no-unresolved": 0,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -23,7 +23,7 @@
"babel-preset-stage-0": "^6.16.0",
"babel-register": "^6.16.3",
"eslint": "^3.8.1",
"eslint-config-airbnb": "^12.0.0",
"eslint-config-airbnb": "^13.0.0",
"eslint-plugin-import": "^2.0.1",
"eslint-plugin-jsx-a11y": "^2.2.3",
"eslint-plugin-react": "^6.4.1",
Expand Down
5 changes: 3 additions & 2 deletions packages/mjml-section/src/index.js
Expand Up @@ -43,7 +43,7 @@ const baseStyles = {
const postRender = $ => {
$('.mj-section-outlook-background').each(function () {
const url = $(this).data('url')
const width = $(this).data('width')
const width = parseInt($(this).data('width'))

$(this)
.removeAttr('class')
Expand Down Expand Up @@ -78,9 +78,10 @@ const postRender = $ => {

$('.mj-section-outlook-line').each(function () {
const $columnDiv = $(this).next()
const width = parseInt($(this).data('width'))

$(this).replaceWith(`${helpers.startConditionalTag}
</td><td style="vertical-align:${$columnDiv.data('vertical-align')};width:${parseInt($(this).data('width'))}px;">
</td><td style="vertical-align:${$columnDiv.data('vertical-align')};width:${width}px;">
${helpers.endConditionalTag}`)

$columnDiv.removeAttr('data-vertical-align')
Expand Down

0 comments on commit f0e49a6

Please sign in to comment.