From 694ad26c3f1f076c0f5621ae11f1f69f5df2fd87 Mon Sep 17 00:00:00 2001 From: Takagi <1103069291@qq.com> Date: Tue, 2 Jan 2024 18:20:12 +0800 Subject: [PATCH] fix: address styling issues with empty lines in code blocks (#5140) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind bug #### What this PR does / why we need it: 修改 code 内`br` 标签的 `display`,用于适配 firefox 浏览器 #### How to test it? 测试在 firefox 浏览器下,使用代码块回车等是否会出现样式问题。 #### Which issue(s) this PR fixes: Fixes #5064 #### Does this PR introduce a user-facing change? ```release-note 解决在 Firefox 浏览器下的代码块编辑问题。 ``` --- console/packages/editor/src/styles/base.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console/packages/editor/src/styles/base.scss b/console/packages/editor/src/styles/base.scss index 02a9b95bbe..a8a7dc86ee 100644 --- a/console/packages/editor/src/styles/base.scss +++ b/console/packages/editor/src/styles/base.scss @@ -72,7 +72,7 @@ } code br { - display: block; + display: initial; } } }