reduce div nesting in instances
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
parent
9eb8aaa4be
commit
bbc67fa6fb
@ -198,9 +198,9 @@ async function handleInstanceAdd () {
|
|||||||
export class Instance {
|
export class Instance {
|
||||||
constructor () {
|
constructor () {
|
||||||
let shadowRoot = document.createElement("div");
|
let shadowRoot = document.createElement("div");
|
||||||
|
shadowRoot.classList.add("w3-row");
|
||||||
|
|
||||||
shadowRoot.innerHTML = `
|
shadowRoot.innerHTML = `
|
||||||
<div class="w3-row">
|
|
||||||
<div class="w3-col l1 m2 s6">
|
<div class="w3-col l1 m2 s6">
|
||||||
<p id="instance-id"></p>
|
<p id="instance-id"></p>
|
||||||
</div>
|
</div>
|
||||||
@ -227,7 +227,6 @@ export class Instance {
|
|||||||
<img id="configure-btn" class="clickable">
|
<img id="configure-btn" class="clickable">
|
||||||
<img id="delete-btn" class="clickable">
|
<img id="delete-btn" class="clickable">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
this.shadowElement = shadowRoot;
|
this.shadowElement = shadowRoot;
|
||||||
|
Loading…
Reference in New Issue
Block a user