From 822c5936b5480a8a79ca7890713074fdd08d1e07 Mon Sep 17 00:00:00 2001 From: gbtami Date: Sat, 15 Jun 2024 18:06:11 +0200 Subject: [PATCH] Fix css variable name suffix --- src/render.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render.ts b/src/render.ts index c15dd10..e8e8176 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.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');