Refactor BlocksWidth preprocessor to set string including units

I added pixels to calculated width for easier work with it in block rendering.
[MAILPOET-5591]
This commit is contained in:
Jan Lysý
2023-10-18 19:41:54 +02:00
committed by Jan Lysý
parent ac075c197e
commit 1250d81670
7 changed files with 60 additions and 47 deletions

View File

@@ -33,8 +33,14 @@ class EmailApiController {
public function getEmailDataSchema(): array {
return Builder::object([
'layout_styles' => Builder::object([
'width' => Builder::integer(),
'width' => Builder::string(),
'background' => Builder::string(),
'padding' => Builder::object([
'bottom' => Builder::string(),
'left' => Builder::string(),
'right' => Builder::string(),
'top' => Builder::string(),
]),
]),
])->toArray();
}