loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix line height on inline code preview (#30372)

Fixes https://github.com/go-gitea/gitea/issues/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.

(cherry picked from commit 6cac11cb1bc4b42bc7851a59b1f3a94700c5eb84)

authored by

silverwind and committed by
Gergely Nagy
12f72171 63c707b3

+1
+1
web_src/css/base.css
··· 1260 1260 white-space: pre-wrap; 1261 1261 word-break: break-all; 1262 1262 overflow-wrap: anywhere; 1263 + line-height: inherit; /* needed for inline code preview in markup */ 1263 1264 } 1264 1265 1265 1266 .blame .code-inner {