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');