| | |
| | | render() { |
| | | const { card, dict } = this.state |
| | | let style = resetStyle(card.style) |
| | | if (card.wrap.maxWidth) { |
| | | style.maxWidth = card.wrap.maxWidth |
| | | let left = style.marginLeft && style.marginLeft !== '0px' ? style.marginLeft : 'auto' |
| | | let right = style.marginRight && style.marginRight !== '0px' ? style.marginRight : 'auto' |
| | | style.margin = (style.marginTop || 0) + ' ' + right + ' ' + (style.marginBottom || 0) + ' ' + left |
| | | delete style.marginLeft |
| | | delete style.marginRight |
| | | delete style.marginTop |
| | | delete style.marginBottom |
| | | } |
| | | |
| | | return ( |
| | | <div className="login-edit-box" style={style} onClick={this.clickComponent} id={card.uuid}> |