Skip to content

Commit ef9b4cc

Browse files
committed
Resize minimize/delete handle icons so they take up the entire topbar height. This makes them much easier to touch
1 parent 8d4e387 commit ef9b4cc

5 files changed

+12
-12
lines changed

core/scratch_bubble.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -138,19 +138,19 @@ Blockly.ScratchBubble.TOP_BAR_HEIGHT = 32;
138138
* The size of the minimize arrow icon in the comment top bar.
139139
* @private
140140
*/
141-
Blockly.ScratchBubble.MINIMIZE_ICON_SIZE = 16;
141+
Blockly.ScratchBubble.MINIMIZE_ICON_SIZE = 32;
142142

143143
/**
144144
* The size of the delete icon in the comment top bar.
145145
* @private
146146
*/
147-
Blockly.ScratchBubble.DELETE_ICON_SIZE = 12;
147+
Blockly.ScratchBubble.DELETE_ICON_SIZE = 32;
148148

149149
/**
150150
* The inset for the top bar icons.
151151
* @private
152152
*/
153-
Blockly.ScratchBubble.TOP_BAR_ICON_INSET = 6;
153+
Blockly.ScratchBubble.TOP_BAR_ICON_INSET = 0;
154154

155155
/**
156156
* Create the bubble's DOM.

core/workspace_comment_render_svg.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,19 @@ Blockly.WorkspaceCommentSvg.TOP_BAR_HEIGHT = 32;
6262
* The size of the minimize arrow icon in the comment top bar.
6363
* @private
6464
*/
65-
Blockly.WorkspaceCommentSvg.MINIMIZE_ICON_SIZE = 16;
65+
Blockly.WorkspaceCommentSvg.MINIMIZE_ICON_SIZE = 32;
6666

6767
/**
6868
* The size of the delete icon in the comment top bar.
6969
* @private
7070
*/
71-
Blockly.WorkspaceCommentSvg.DELETE_ICON_SIZE = 12;
71+
Blockly.WorkspaceCommentSvg.DELETE_ICON_SIZE = 32;
7272

7373
/**
7474
* The inset for the top bar icons.
7575
* @private
7676
*/
77-
Blockly.WorkspaceCommentSvg.TOP_BAR_ICON_INSET = 6;
77+
Blockly.WorkspaceCommentSvg.TOP_BAR_ICON_INSET = 0;
7878

7979
/**
8080
* Width that a minimized comment should have.

media/comment-arrow-down.svg

+2-2
Loading

media/comment-arrow-up.svg

+2-2
Loading

media/delete-x.svg

+2-2
Loading

0 commit comments

Comments
 (0)