|
|
@ -36,7 +36,7 @@ class SwapPanelComponent { |
|
|
|
this.contents[moduleName].style.display = 'block' |
|
|
|
this.contents[moduleName].style.display = 'block' |
|
|
|
this.currentNode = moduleName |
|
|
|
this.currentNode = moduleName |
|
|
|
var api = this.store.getOne(moduleName) |
|
|
|
var api = this.store.getOne(moduleName) |
|
|
|
this.header.innerHTML = api.profile ? api.profile.displayName : ' - ' |
|
|
|
this.header.querySelector('h6').innerHTML = api.profile ? api.profile.displayName : ' - ' |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -59,7 +59,7 @@ class SwapPanelComponent { |
|
|
|
<div id='plugins' class=${css.plugins} > |
|
|
|
<div id='plugins' class=${css.plugins} > |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
` |
|
|
|
` |
|
|
|
this.header = yo`<header class="navbar navbar-dark bg-dark text-warning"><h2 class="navbar-brand"></h2> </header>` |
|
|
|
this.header = yo`<header class="${css.swapitHeader} bg-dark"><h6 class="${css.swapitTitle}"></h6></header>` |
|
|
|
if (!this.opt.displayHeader) this.header.style.display = 'none' |
|
|
|
if (!this.opt.displayHeader) this.header.style.display = 'none' |
|
|
|
|
|
|
|
|
|
|
|
return yo`<div class=${css.pluginsContainer}>
|
|
|
|
return yo`<div class=${css.pluginsContainer}>
|
|
|
@ -77,7 +77,7 @@ const css = csjs` |
|
|
|
} |
|
|
|
} |
|
|
|
.plugItIn { |
|
|
|
.plugItIn { |
|
|
|
display : none; |
|
|
|
display : none; |
|
|
|
height : 100%; |
|
|
|
height: calc(100% - 50px); |
|
|
|
} |
|
|
|
} |
|
|
|
.plugItIn > div { |
|
|
|
.plugItIn > div { |
|
|
|
overflow-y : auto; |
|
|
|
overflow-y : auto; |
|
|
@ -91,4 +91,12 @@ const css = csjs` |
|
|
|
height: 100%; |
|
|
|
height: 100%; |
|
|
|
overflow-y: hidden; |
|
|
|
overflow-y: hidden; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.swapitTitle { |
|
|
|
|
|
|
|
text-transform: uppercase; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.swapitHeader { |
|
|
|
|
|
|
|
height: 50px; |
|
|
|
|
|
|
|
padding-top: 16px; |
|
|
|
|
|
|
|
padding-left: 27px; |
|
|
|
|
|
|
|
} |
|
|
|
` |
|
|
|
` |
|
|
|