diff --git a/src/platform/web/ui/common.js b/src/platform/web/ui/common.js index 15a522c7..5551ed09 100644 --- a/src/platform/web/ui/common.js +++ b/src/platform/web/ui/common.js @@ -20,15 +20,16 @@ export function spinner(t, extraClasses = undefined) { if (container === undefined) { container = document.querySelector(".hydrogen"); } + const classes = Object.assign({"spinner": true}, extraClasses); if (container?.classList.contains("legacy")) { - return t.div({className: "spinner"}, [ + return t.div({className: classes}, [ t.div(), t.div(), t.div(), t.div(), ]); } else { - return t.svg({className: Object.assign({"spinner": true}, extraClasses), viewBox:"0 0 100 100"}, + return t.svg({className: classes, viewBox:"0 0 100 100"}, t.circle({cx:"50%", cy:"50%", r:"45%", pathLength:"100"}) ); }