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

@@ -23,7 +23,7 @@ class PreprocessManager {
/**
* @param array $parsedBlocks
* @param array{width: int, background: string, padding: array{bottom: int, left: int, right: int, top: int}} $layoutStyles
* @param array{width: string, background: string, padding: array{bottom: string, left: string, right: string, top: string}} $layoutStyles
* @return array
*/
public function preprocess(array $parsedBlocks, array $layoutStyles): array {