Skip to content

Commit f1cbfa5

Browse files
committed
#635: User Access Column Action Panel with 2+ Level Nesting - Added fix for margin right in preview converter
1 parent eb8739d commit f1cbfa5

File tree

2 files changed

+2
-2
lines changed
  • app/code/Magento/PageBuilder/view/adminhtml/web

2 files changed

+2
-2
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/js/content-type/column/converter/style/margins.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/content-type/column/converter/style/margins.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default class Margins implements ConverterInterface {
4848
if (value && undefined !== value.margin) {
4949
result.marginLeft = value.margin.left ? value.margin.left + "px" : "";
5050
result.marginTop = value.margin.top ? value.margin.top + "px" : "";
51-
result.marginRight = (parseInt(value.margin.right, 10) > 0 ? value.margin.right : 1) + "px";
51+
result.marginRight = (parseInt(value.margin.right, 10) !== 0 ? value.margin.right : 1) + "px";
5252
result.marginBottom = value.margin.bottom ? value.margin.bottom + "px" : "";
5353
}
5454
return result;

0 commit comments

Comments
 (0)