Skip to content

Commit

Permalink
Fix line height on inline code preview (#30372)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
silverwind committed Apr 10, 2024
1 parent b09687f commit 6cac11c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web_src/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -1242,6 +1242,7 @@ overflow-menu .ui.label {
white-space: pre-wrap;
word-break: break-all;
overflow-wrap: anywhere;
line-height: inherit; /* needed for inline code preview in markup */
}

.blame .code-inner {
Expand Down

0 comments on commit 6cac11c

Please sign in to comment.