Skip to content
Snippets Groups Projects
Commit a3e414ef authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Change "More" category to "My Blocks.

parent a0ed0c71
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......@@ -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) {
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment