Skip to content

Commit

Permalink
Concatenate boardName with '-' to css vars
Browse files Browse the repository at this point in the history
  • Loading branch information
gbtami committed Jun 15, 2024
1 parent 71afaad commit 3a26187
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 3a26187

Please sign in to comment.