Skip to content

Commit 6cac11c

Browse files
authored
Fix line height on inline code preview (#30372)
Fixes #30353. I don't know what causes `code-inner` to not inherit `line-height` from its direct parent `.lines-code` but instead from grandparent `.markup` even thought MDN tells me it's [inherited](https://developer.mozilla.org/en-US/docs/Web/CSS/line-height#formal_definition). This causes no negative impact on other code views, so I think it's the best solution.
1 parent b09687f commit 6cac11c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web_src/css/base.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,6 +1242,7 @@ overflow-menu .ui.label {
12421242
white-space: pre-wrap;
12431243
word-break: break-all;
12441244
overflow-wrap: anywhere;
1245+
line-height: inherit; /* needed for inline code preview in markup */
12451246
}
12461247

12471248
.blame .code-inner {

0 commit comments

Comments
 (0)