Skip to content

Commit

Permalink
fix: address styling issues with empty lines in code blocks (#5140)
Browse files Browse the repository at this point in the history
#### 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 浏览器下的代码块编辑问题。
```
  • Loading branch information
LIlGG authored Jan 2, 2024
1 parent 5a51c5d commit 694ad26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion console/packages/editor/src/styles/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
}

code br {
display: block;
display: initial;
}
}
}
Expand Down

0 comments on commit 694ad26

Please sign in to comment.