reduce div nesting in instances

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2023-05-15 20:41:31 +00:00
parent 9eb8aaa4be
commit bbc67fa6fb

View File

@ -198,9 +198,9 @@ async function handleInstanceAdd () {
export class Instance {
constructor () {
let shadowRoot = document.createElement("div");
shadowRoot.classList.add("w3-row");
shadowRoot.innerHTML = `
<div class="w3-row">
<div class="w3-col l1 m2 s6">
<p id="instance-id"></p>
</div>
@ -227,7 +227,6 @@ export class Instance {
<img id="configure-btn" class="clickable">
<img id="delete-btn" class="clickable">
</div>
</div>
`;
this.shadowElement = shadowRoot;