Skip to content

Commit 88b3d19

Browse files
GiteaBotsilverwind
andauthored
Fix line height on inline code preview (#30372) (#30385)
Backport #30372 by @silverwind 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. Co-authored-by: silverwind <[email protected]>
1 parent 021ee84 commit 88b3d19

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
@@ -1316,6 +1316,7 @@ overflow-menu .ui.label {
13161316
white-space: pre-wrap;
13171317
word-break: break-all;
13181318
overflow-wrap: anywhere;
1319+
line-height: inherit; /* needed for inline code preview in markup */
13191320
}
13201321

13211322
.blame .code-inner {

0 commit comments

Comments
 (0)