ui: fix popup's title padding when there's no closer
This commit is contained in:
parent
0905eccd9b
commit
9ef7a63520
2 changed files with 4 additions and 4 deletions
|
|
@ -5,7 +5,7 @@ module.exports = {
|
|||
var popup = $(`
|
||||
<div class="popup">
|
||||
<div class="popup-wrapper">
|
||||
<div class="popup-title">${title}<span class="closer">${module.exports.icon('remove')}</span></div>
|
||||
<div class="popup-title ${closable? 'closable' : ''}">${title}${closable? `<span class="closer">${module.exports.icon('remove')}</span>` : ''}</div>
|
||||
<div class="popup-content"></div>
|
||||
</div>
|
||||
</div>`),
|
||||
|
|
@ -15,8 +15,6 @@ module.exports = {
|
|||
closer.click(function(){
|
||||
popup.close()
|
||||
})
|
||||
} else {
|
||||
closer.remove()
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue