mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 10:47:35 -05:00
more cleaning
This commit is contained in:
@@ -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'])
|
||||
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user