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()
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -373,8 +373,10 @@ i {
|
|||
.popup-title {
|
||||
position: relative;
|
||||
padding:15rem;
|
||||
padding-right: 50rem;
|
||||
background:var(--color-raised);
|
||||
&.closable {
|
||||
padding-right: 50rem;
|
||||
}
|
||||
.closer {
|
||||
position:absolute;
|
||||
right:0rem;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue