From fcdb8fc33d9e21699a6eed55f1eabaf63bb76798 Mon Sep 17 00:00:00 2001 From: Neil Fraser Date: Mon, 20 May 2024 18:59:24 +0200 Subject: [PATCH] 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. --- core/bubbles/textinput_bubble.ts | 4 ++-- core/comments/comment_view.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/bubbles/textinput_bubble.ts b/core/bubbles/textinput_bubble.ts index fcbb2cf5d..d7d1f5ae7 100644 --- a/core/bubbles/textinput_bubble.ts +++ b/core/bubbles/textinput_bubble.ts @@ -303,10 +303,10 @@ Css.register(` .blocklyTextInputBubble .blocklyTextarea { background-color: var(--commentFillColour); border: 0; + box-sizing: border-box; display: block; - margin: 0; outline: 0; - padding: 3px; + padding: 5px; resize: none; width: 100%; height: 100%; diff --git a/core/comments/comment_view.ts b/core/comments/comment_view.ts index 9195833a0..52f92b567 100644 --- a/core/comments/comment_view.ts +++ b/core/comments/comment_view.ts @@ -774,13 +774,13 @@ css.register(` .blocklyComment .blocklyTextarea { background-color: var(--commentFillColour); border: 1px solid var(--commentBorderColour); - outline: 0; - resize: none; box-sizing: border-box; - padding: 8px; + display: block; + outline: 0; + padding: 5px; + resize: none; width: 100%; height: 100%; - display: block; } .blocklyReadonly.blocklyComment .blocklyTextarea {