diff --git a/components/Alert/Alert.tsx b/components/Alert/Alert.tsx index 890075d..d8d0da2 100644 --- a/components/Alert/Alert.tsx +++ b/components/Alert/Alert.tsx @@ -112,12 +112,14 @@ export class Alert extends Component { {icon ? icon : ()} -

{title}

- { - this.props.children ? ( -

{this.props.children}

- ) : null - } +
+

{title}

+ { + this.props.children ? ( +

{this.props.children}

+ ) : null + } +
{ closable ? ( diff --git a/components/Alert/style/index.less b/components/Alert/style/index.less index fed8b2c..45e2ddf 100644 --- a/components/Alert/style/index.less +++ b/components/Alert/style/index.less @@ -63,7 +63,7 @@ &-with-description { - padding: 16px 16px 16px 60px; + padding: 16px; .@{alert-prefix-cls}-icon { position: absolute; @@ -72,11 +72,16 @@ } .@{alert-prefix-cls}-close { - font-size: 20px; + font-size: 14px; right: 8px; } } + &-has-icon-description { + display: inline-block; + padding-left: 46px; + } + &-message { color: rgba(0,0,0,.85); }