mjml-column
Advanced tools
Comparing version 4.7.0-beta.1 to 4.7.0-beta.2
@@ -120,3 +120,5 @@ "use strict"; | ||
return '100%'; | ||
} else if (width === undefined) { | ||
} | ||
if (width === undefined) { | ||
return "".concat(parseInt(100 / nonRawSiblings, 10), "%"); | ||
@@ -243,19 +245,17 @@ } | ||
renderer: function renderer(component) { | ||
return (// eslint-disable-line no-confusing-arrow | ||
component.constructor.isRawElement() ? component.render() : "\n <tr>\n <td\n ".concat(component.htmlAttributes({ | ||
align: component.getAttribute('align'), | ||
'vertical-align': component.getAttribute('vertical-align'), | ||
"class": component.getAttribute('css-class'), | ||
style: { | ||
background: component.getAttribute('container-background-color'), | ||
'font-size': '0px', | ||
padding: component.getAttribute('padding'), | ||
'padding-top': component.getAttribute('padding-top'), | ||
'padding-right': component.getAttribute('padding-right'), | ||
'padding-bottom': component.getAttribute('padding-bottom'), | ||
'padding-left': component.getAttribute('padding-left'), | ||
'word-break': 'break-word' | ||
} | ||
}), "\n >\n ").concat(component.render(), "\n </td>\n </tr>\n ") | ||
); | ||
return component.constructor.isRawElement() ? component.render() : "\n <tr>\n <td\n ".concat(component.htmlAttributes({ | ||
align: component.getAttribute('align'), | ||
'vertical-align': component.getAttribute('vertical-align'), | ||
"class": component.getAttribute('css-class'), | ||
style: { | ||
background: component.getAttribute('container-background-color'), | ||
'font-size': '0px', | ||
padding: component.getAttribute('padding'), | ||
'padding-top': component.getAttribute('padding-top'), | ||
'padding-right': component.getAttribute('padding-right'), | ||
'padding-bottom': component.getAttribute('padding-bottom'), | ||
'padding-left': component.getAttribute('padding-left'), | ||
'word-break': 'break-word' | ||
} | ||
}), "\n >\n ").concat(component.render(), "\n </td>\n </tr>\n "); | ||
} | ||
@@ -262,0 +262,0 @@ }), "\n </table>\n "); |
{ | ||
"name": "mjml-column", | ||
"description": "mjml-column", | ||
"version": "4.7.0-beta.1", | ||
"version": "4.7.0-beta.2", | ||
"main": "lib/index.js", | ||
"files": [ | ||
"lib" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/mjmlio/mjml.git" | ||
"url": "git+https://github.com/mjmlio/mjml.git", | ||
"directory": "packages/mjml-column" | ||
}, | ||
@@ -22,3 +26,3 @@ "license": "MIT", | ||
"lodash": "^4.17.15", | ||
"mjml-core": "4.7.0-beta.1" | ||
"mjml-core": "4.7.0-beta.2" | ||
}, | ||
@@ -29,3 +33,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "da689e73a2e37799226ce4dfcbca631a263bc8cc" | ||
"gitHead": "d560b14ad17c1ddcad1587623648cc1a6676352a" | ||
} |
@@ -6,2 +6,7 @@ ## mj-column | ||
<aside class="notice"> | ||
The sum of columns in a section cannot be greater than | ||
the width of the parent `mj-section` (or 100%). | ||
</aside> | ||
Every single column has to contain something because they are responsive containers, and will be vertically stacked on a mobile view. Any standard component, or component that you have defined and registered, can be placed within a column – except `mj-column` or `mj-section` elements. | ||
@@ -8,0 +13,0 @@ |
16262
66
268
+ Addedcamelcase@5.3.1(transitive)
+ Addedcliui@6.0.0(transitive)
+ Addeddecamelize@1.2.0(transitive)
+ Addedfind-up@4.1.0(transitive)
+ Addedget-caller-file@2.0.5(transitive)
+ Addedlocate-path@5.0.0(transitive)
+ Addedmjml-core@4.7.0-beta.2(transitive)
+ Addedmjml-migrate@4.7.0-beta.2(transitive)
+ Addedmjml-parser-xml@4.7.0-beta.2(transitive)
+ Addedmjml-validator@4.7.0-beta.2(transitive)
+ Addedp-limit@2.3.0(transitive)
+ Addedp-locate@4.1.0(transitive)
+ Addedp-try@2.2.0(transitive)
+ Addedpath-exists@4.0.0(transitive)
+ Addedrequire-directory@2.1.1(transitive)
+ Addedrequire-main-filename@2.0.0(transitive)
+ Addedset-blocking@2.0.0(transitive)
+ Addedwhich-module@2.0.1(transitive)
+ Addedwrap-ansi@6.2.0(transitive)
+ Addedy18n@4.0.3(transitive)
+ Addedyargs@15.4.1(transitive)
+ Addedyargs-parser@18.1.3(transitive)
- Removedmjml-core@4.7.0-beta.1(transitive)
- Removedmjml-migrate@4.7.0-beta.1(transitive)
- Removedmjml-parser-xml@4.7.0-beta.1(transitive)
- Removedmjml-validator@4.7.0-beta.1(transitive)
Updatedmjml-core@4.7.0-beta.2