Skip to content

Commit fcdb8fc

Browse files
author
Neil Fraser
authored
fix: Normalize CSS between comment types (#8161)
Merge the CSS so that both comment types (block and workspace) are the same -- other than a border.
1 parent 7c4b0bd commit fcdb8fc

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

core/bubbles/textinput_bubble.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,10 @@ Css.register(`
303303
.blocklyTextInputBubble .blocklyTextarea {
304304
background-color: var(--commentFillColour);
305305
border: 0;
306+
box-sizing: border-box;
306307
display: block;
307-
margin: 0;
308308
outline: 0;
309-
padding: 3px;
309+
padding: 5px;
310310
resize: none;
311311
width: 100%;
312312
height: 100%;

core/comments/comment_view.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -774,13 +774,13 @@ css.register(`
774774
.blocklyComment .blocklyTextarea {
775775
background-color: var(--commentFillColour);
776776
border: 1px solid var(--commentBorderColour);
777+
box-sizing: border-box;
778+
display: block;
777779
outline: 0;
780+
padding: 5px;
778781
resize: none;
779-
box-sizing: border-box;
780-
padding: 8px;
781782
width: 100%;
782783
height: 100%;
783-
display: block;
784784
}
785785
786786
.blocklyReadonly.blocklyComment .blocklyTextarea {

0 commit comments

Comments
 (0)