From 3a2618753158f053fe76c15f7332e7ddc5cd45df Mon Sep 17 00:00:00 2001 From: gbtami Date: Sat, 15 Jun 2024 12:42:17 +0200 Subject: [PATCH] Concatenate boardName with '-' to css vars --- src/render.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render.ts b/src/render.ts index 4417b6d..c15dd10 100644 --- a/src/render.ts +++ b/src/render.ts @@ -202,7 +202,7 @@ export function updateBounds(s: State): void { container.style.height = height + 'px'; s.dom.bounds.clear(); - const suffix = s.boardName ?? ''; + const suffix = '-' + s.boardName ?? ''; s.addDimensionsCssVarsTo?.style.setProperty('--cg-width' + suffix, width + 'px'); s.addDimensionsCssVarsTo?.style.setProperty('--cg-height' + suffix, height + 'px'); s.dom.elements.pocketTop?.style.setProperty('--cg-width' + suffix, width + 'px');