more cleaning

This commit is contained in:
Fabio Pliger
2022-04-28 14:00:31 -06:00
parent 3f05d33ebc
commit ec38f9c151
5 changed files with 8 additions and 31 deletions

View File

@@ -49,14 +49,11 @@ export class PyBox extends HTMLElement {
this.widths.push(`w-${w}`);
}
} else {
for (const el of mainDiv.childNodes) {
this.widths.push(`w-1/${mainDiv.childNodes.length}`);
}
this.widths = [...this.widths, ...[`w-1/${mainDiv.childNodes.length}`]];
}
this.widths.forEach((width, index)=>{
const node: ChildNode = mainDiv.childNodes[index];
// @ts-ignore
addClasses(node, [width, 'mx-4'])
})