From 988800b6a8a05d671d7f18707b36485969c5e48c Mon Sep 17 00:00:00 2001 From: Fabian Rassi Date: Mon, 9 Oct 2023 17:42:44 +0200 Subject: [PATCH] BLOCKS-332 add 'catblocks-' before CSS classes --- src/library/js/integration/catroid.js | 2 +- src/library/js/integration/utils.js | 2 +- src/library/scss/_blockly.scss | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/library/js/integration/catroid.js b/src/library/js/integration/catroid.js index e76fcd12..6e9d3700 100644 --- a/src/library/js/integration/catroid.js +++ b/src/library/js/integration/catroid.js @@ -293,7 +293,7 @@ export class Catroid { Android.updateScriptPosition(newEmptyBrickId, newEmptyBrickPositionX, newEmptyBrickPositionY); if (newEmptyBrick.pathObject && newEmptyBrick.pathObject.svgRoot) { - Blockly.utils.dom.addClass(newEmptyBrick.pathObject.svgRoot, 'catblockls-blockly-invisible'); + Blockly.utils.dom.addClass(newEmptyBrick.pathObject.svgRoot, 'catblocks-blockly-invisible'); } this.removeEmptyScriptBricks(); } else { diff --git a/src/library/js/integration/utils.js b/src/library/js/integration/utils.js index 8ff60992..c9d208e2 100644 --- a/src/library/js/integration/utils.js +++ b/src/library/js/integration/utils.js @@ -430,7 +430,7 @@ export const renderBrick = (parentBrick, jsonBrick, brickListType, workspace, re if (childBrick.pathObject && childBrick.pathObject.svgRoot) { if (jsonBrick.name == 'EmptyScript') { - Blockly.utils.dom.addClass(childBrick.pathObject.svgRoot, 'catblockls-blockly-invisible'); + Blockly.utils.dom.addClass(childBrick.pathObject.svgRoot, 'catblocks-blockly-invisible'); } else if (jsonBrick.commentedOut) { Blockly.utils.dom.addClass(childBrick.pathObject.svgRoot, 'catblocks-blockly-disabled'); if (workspace.getTheme().name.toLowerCase() === 'advanced') { diff --git a/src/library/scss/_blockly.scss b/src/library/scss/_blockly.scss index 4fcd1c40..4fc73dbc 100644 --- a/src/library/scss/_blockly.scss +++ b/src/library/scss/_blockly.scss @@ -40,7 +40,7 @@ word-wrap: break-word; } -.catblockls-blockly-invisible > .blocklyPath { +.catblocks-blockly-invisible > .blocklyPath { fill-opacity: 0; stroke-opacity: 0; }