mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Create space for the last card's menu on open.
This commit is contained in:
@@ -73,3 +73,8 @@ html /deep/ core-tooltip:hover:not([disabled])::shadow .core-tooltip {
|
||||
opacity: 1;
|
||||
transition-delay: 0s;
|
||||
}
|
||||
|
||||
/* The max-height doesn't allow for expansion into newly-created scroll space. */
|
||||
#main /deep/ paper-dropdown::shadow #scroller {
|
||||
max-height: none !important;
|
||||
}
|
||||
|
||||
@@ -196,7 +196,8 @@ loot-clear-metadata
|
||||
observe: {
|
||||
'data.tags': 'onTagsChange',
|
||||
'data.messages': 'onMessagesChange',
|
||||
'data.userlist': 'onUserlistChange'
|
||||
'data.userlist': 'onUserlistChange',
|
||||
'data.isMenuOpen': 'onMenuToggle'
|
||||
},
|
||||
|
||||
attached: function() {
|
||||
@@ -272,6 +273,14 @@ loot-clear-metadata
|
||||
}
|
||||
},
|
||||
|
||||
onMenuToggle: function(oldValue, newValue) {
|
||||
if (newValue) {
|
||||
this.style.marginBottom = '190px';
|
||||
} else {
|
||||
this.style.marginBottom = '0';
|
||||
}
|
||||
},
|
||||
|
||||
getName: function() {
|
||||
return this.getElementsByTagName('h1')[0].textContent;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user