mirror of https://github.com/ElemeFE/element
Message: add content right padding when closable
parent
08f9c7487a
commit
6280336ca2
|
@ -5,6 +5,7 @@
|
|||
'el-message',
|
||||
type && !iconClass ? `el-message--${ type }` : '',
|
||||
center ? 'is-center' : '',
|
||||
showClose ? 'is-closable' : '',
|
||||
customClass]"
|
||||
v-show="visible"
|
||||
@mouseenter="clearTimer"
|
||||
|
|
|
@ -23,6 +23,12 @@
|
|||
justify-content: center;
|
||||
}
|
||||
|
||||
@include when(closable) {
|
||||
.el-message__content {
|
||||
padding-right: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue