Render input padding

[MAILPOET-2809]
This commit is contained in:
Pavel Dohnal
2020-04-21 11:55:01 +02:00
committed by Veljko V
parent 2317412f88
commit 0d4d0c7052
11 changed files with 84 additions and 30 deletions

View File

@@ -130,19 +130,6 @@ class BlockRendererHelper {
return $rules ? 'style="' . implode("", $rules) . '"' : '';
}
public function renderBlockAlignment(array $formSettings) {
$rules = [];
if (isset($formSettings['alignment'])) {
if ($formSettings['alignment'] === 'right') {
$rules[] = 'margin: 0 0 0 auto';
}
if ($formSettings['alignment'] === 'center') {
$rules[] = 'margin: 0 auto';
}
}
return $rules ? 'style="' . implode("", $rules) . '"' : '';
}
public function renderInputPlaceholder(array $block): string {
$html = '';
// if the label is displayed as a placeholder,