Fix divider height
[MAILPOET-2835]
This commit is contained in:
@ -28,13 +28,12 @@ class Divider {
|
|||||||
$style = $block['params']['style'] ?? self::DEFAULT_ATTRIBUTES['style'];
|
$style = $block['params']['style'] ?? self::DEFAULT_ATTRIBUTES['style'];
|
||||||
$dividerHeight = $block['params']['divider_height'] ?? self::DEFAULT_ATTRIBUTES['dividerHeight'];
|
$dividerHeight = $block['params']['divider_height'] ?? self::DEFAULT_ATTRIBUTES['dividerHeight'];
|
||||||
$color = $block['params']['color'] ?? self::DEFAULT_ATTRIBUTES['color'];
|
$color = $block['params']['color'] ?? self::DEFAULT_ATTRIBUTES['color'];
|
||||||
$height = $block['params']['height'] ?? self::DEFAULT_ATTRIBUTES['height'];
|
|
||||||
|
|
||||||
$dividerStyles = [
|
$dividerStyles = [
|
||||||
"border-top-style: $style",
|
"border-top-style: $style",
|
||||||
"border-top-width: {$dividerHeight}px",
|
"border-top-width: {$dividerHeight}px",
|
||||||
"border-top-color: $color",
|
"border-top-color: $color",
|
||||||
"height: {$height}px",
|
"height: {$dividerHeight}px",
|
||||||
"width: $width%",
|
"width: $width%",
|
||||||
];
|
];
|
||||||
$style = implode(";", $dividerStyles);
|
$style = implode(";", $dividerStyles);
|
||||||
|
Reference in New Issue
Block a user