Skip to content

Commit f63c1c1

Browse files
author
Hwashiang Yu
committed
MC-4290: Alignment Doesn't Work For Slide, Banners, & Text Placeholders & for Slide Content & Banner Poster Content
- Added text alignment to text placeholder
1 parent f1bc093 commit f63c1c1

File tree

2 files changed

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

2 files changed

+4
-3
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/js/content-type/text/preview.js

Lines changed: 2 additions & 2 deletions
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/text/preview.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export default class Preview extends BasePreview {
130130
}
131131

132132
/**
133-
* Retrieve the margin & padding styles for the placeholder
133+
* Retrieve the margin & padding & alignment styles for the placeholder
134134
*
135135
* @returns {any}
136136
*/
@@ -145,6 +145,7 @@ export default class Preview extends BasePreview {
145145
"paddingLeft",
146146
"paddingRight",
147147
"paddingTop",
148+
"textAlign",
148149
];
149150
return _.pick(this.data.main.style(), (style: string, key: string) => {
150151
return keys.indexOf(key) !== -1;

0 commit comments

Comments
 (0)