GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: improve sizing and rendering of comments (#219) · SnoopyMod/scratch-blocks@1279c0a

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • css.js
    • index.js
    • scratch_comment_bubble.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/css.js‎

Copy file name to clipboardExpand all lines: src/css.js
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,9 @@ const styles = `
524524
stroke-width: 3px;
525525
}
526526
527+
.blocklyCommentText::placeholder {
528+
font-style: italic;
529+
}
527530
528531
.blocklyCommentTextarea {
529532
background-color: #fef49c;
Collapse file

‎src/index.js‎

Copy file name to clipboardExpand all lines: src/index.js
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,7 @@ Blockly.ContextMenuRegistry.registry.unregister("blockDelete");
129129
contextMenuItems.registerDeleteBlock();
130130
Blockly.ContextMenuRegistry.registry.unregister("workspaceDelete");
131131
contextMenuItems.registerDeleteAll();
132+
Blockly.comments.CommentView.defaultCommentSize = new Blockly.utils.Size(
133+
200,
134+
200
135+
);
Collapse file

‎src/scratch_comment_bubble.js‎

Copy file name to clipboardExpand all lines: src/scratch_comment_bubble.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export class ScratchCommentBubble extends Blockly.comments.CommentView {
1717
this.sourceBlock = sourceBlock;
1818
this.disposing = false;
1919
this.id = Blockly.utils.idGenerator.genUid();
20+
this.setPlaceholderText(Blockly.Msg.WORKSPACE_COMMENT_DEFAULT_TEXT);
2021
this.getSvgRoot().setAttribute(
2122
"style",
2223
`--colour-commentBorder: ${sourceBlock.getColourTertiary()};`

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.