diff --git a/src/components/blocks/blocks.css b/src/components/blocks/blocks.css index 6c5858efd30756a2c2d14cc833bc1d75c774f2f5..ee9ec8aeb8abc5580096c24735fcfb6292cd9fc7 100644 --- a/src/components/blocks/blocks.css +++ b/src/components/blocks/blocks.css @@ -28,3 +28,12 @@ $border-style: 1px solid $ui-pane-border; border-right: $border-style; box-sizing: content-box; } + +/* + Shrink category font to fit "My Blocks" for now. + Probably will need different solutions for language support later, so + make the change here instead of in scratch-blocks. +*/ +.blocks :global(.scratchCategoryMenuItemLabel) { + font-size: 0.65rem; +} diff --git a/src/lib/make-toolbox-xml.js b/src/lib/make-toolbox-xml.js index 637188ef79bc20053079dd62a973339122ae3821..b83bb937629378a25a85fe05064c4b67711b9b41 100644 --- a/src/lib/make-toolbox-xml.js +++ b/src/lib/make-toolbox-xml.js @@ -648,9 +648,9 @@ const data = function () { `; }; -const more = function () { +const myBlocks = function () { return ` - <category name="More" colour="#FF6680" secondaryColour="#FF4D6A" custom="PROCEDURE"> + <category name="My Blocks" colour="#FF6680" secondaryColour="#FF4D6A" custom="PROCEDURE"> </category> `; }; @@ -677,7 +677,7 @@ const makeToolboxXML = function (isStage, targetId, categoriesXML) { sensing(isStage, targetId), gap, operators(isStage, targetId), gap, data(isStage, targetId), gap, - more(isStage, targetId) + myBlocks(isStage, targetId) ]; if (categoriesXML) { diff --git a/test/integration/test.js b/test/integration/test.js index 8668fce2a5ae4e4b28b66ee636aa5d84b4d52e95..4d6866bbad4eca448bcda6a7a3b1d6d338bb8e91 100644 --- a/test/integration/test.js +++ b/test/integration/test.js @@ -219,7 +219,7 @@ describe('costumes, sounds and variables', () => { test('Custom procedures', async () => { await loadUri(uri); - await clickText('More'); + await clickText('My Blocks'); await new Promise(resolve => setTimeout(resolve, 1000)); // Wait for scroll animation await clickText('Make a Block...'); // Click on the "add an input" buttons