Skip to content

Commit

Permalink
Fix css variable name suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
gbtami committed Jun 15, 2024
1 parent f739d31 commit 822c593
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.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 822c593

Please sign in to comment.