From d101fb7f77822aac2a3d42ca1529028405cfad0d Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 9 Sep 2022 14:08:20 +0200 Subject: refactor ui layout --- client-web/source/helper.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client-web/source/helper.ts') diff --git a/client-web/source/helper.ts b/client-web/source/helper.ts index c277c0d..4f97ebb 100644 --- a/client-web/source/helper.ts +++ b/client-web/source/helper.ts @@ -11,9 +11,9 @@ const elem_with_content = (s: string) => (c: string) => { e.textContent = c return e } -const elem_with_children = (s: string) => (opts: { classes?: string[] }, ...cs: (HTMLElement | string)[]) => { +const elem_with_children = (s: string) => (opts: { class?: string[] }, ...cs: (HTMLElement | string)[]) => { const e = elem(s) - if (opts.classes) e.classList.add(...opts.classes) + if (opts.class) e.classList.add(...opts.class) for (const c of cs) { e.append(c) } -- cgit v1.2.3-70-g09d2