]> source.dussan.org Git - gitea.git/commit
Fix line height on inline code preview (#30372)
authorsilverwind <me@silverwind.io>
Wed, 10 Apr 2024 05:44:48 +0000 (07:44 +0200)
committerGitHub <noreply@github.com>
Wed, 10 Apr 2024 05:44:48 +0000 (05:44 +0000)
commit6cac11cb1bc4b42bc7851a59b1f3a94700c5eb84
tree28519b4257525b26d77c6376d79ef644390bb843
parentb09687f1d18e1489d82dd481a1cce50203f2da94
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.
web_src/css/base.css