Display divider
[MAILPOET-2835]
This commit is contained in:
@@ -32,9 +32,11 @@ const DividerEdit = ({ attributes, setAttributes }: Props) => {
|
|||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
||||||
const dividerStyles = {};
|
const dividerStyles = {} as React.CSSProperties;
|
||||||
if (attributes.type === Types.Divider) {
|
if (attributes.type === Types.Divider) {
|
||||||
dividerStyles.borderTopStyle = attributes.style;
|
dividerStyles.borderTopStyle = attributes.style;
|
||||||
|
dividerStyles.height = 1;
|
||||||
|
dividerStyles.width = '100%';
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -68,6 +70,11 @@ const DividerEdit = ({ attributes, setAttributes }: Props) => {
|
|||||||
className={classnames('mailpoet_spacer', attributes.className)}
|
className={classnames('mailpoet_spacer', attributes.className)}
|
||||||
style={{
|
style={{
|
||||||
height: attributes.height,
|
height: attributes.height,
|
||||||
|
display: 'flex',
|
||||||
|
flexDirection: 'column',
|
||||||
|
alignItems: 'center',
|
||||||
|
width: '100%',
|
||||||
|
justifyContent: 'center',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div className="mailpoet_divider" style={dividerStyles} />
|
<div className="mailpoet_divider" style={dividerStyles} />
|
||||||
|
Reference in New Issue
Block a user