File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -134,17 +134,15 @@ function notice (args) {
134134 )
135135 }
136136
137- const autoMarginTag = ( ! description && iconNode )
138- ? < span class = { `${ prefixCls } -message-single-line-auto-margin` } />
139- : null
140-
141137 getNotificationInstance ( outerPrefixCls , placement || defaultPlacement , ( notification ) => {
142138 notification . notice ( {
143139 content : ( h ) => (
144140 < div class = { iconNode ? `${ prefixCls } -with-icon` : '' } >
145141 { iconNode && iconNode ( h ) }
146142 < div class = { `${ prefixCls } -message` } >
147- { autoMarginTag }
143+ { ( ! description && iconNode )
144+ ? < span class = { `${ prefixCls } -message-single-line-auto-margin` } />
145+ : null }
148146 { typeof message === 'function' ? message ( h ) : message }
149147 </ div >
150148 < div class = { `${ prefixCls } -description` } >
You can’t perform that action at this time.
0 commit comments