Fix divider height

[MAILPOET-2835]
This commit is contained in:
Pavel Dohnal
2020-04-30 14:20:56 +02:00
committed by Veljko V
parent 2c2ef3205c
commit 09ecf3e595

View File

@ -28,13 +28,12 @@ class Divider {
$style = $block['params']['style'] ?? self::DEFAULT_ATTRIBUTES['style'];
$dividerHeight = $block['params']['divider_height'] ?? self::DEFAULT_ATTRIBUTES['dividerHeight'];
$color = $block['params']['color'] ?? self::DEFAULT_ATTRIBUTES['color'];
$height = $block['params']['height'] ?? self::DEFAULT_ATTRIBUTES['height'];
$dividerStyles = [
"border-top-style: $style",
"border-top-width: {$dividerHeight}px",
"border-top-color: $color",
"height: {$height}px",
"height: {$dividerHeight}px",
"width: $width%",
];
$style = implode(";", $dividerStyles);