]> source.dussan.org Git - gitea.git/commit
Fix line height on inline code preview (#30372) (#30385)
authorGiteabot <teabot@gitea.io>
Wed, 10 Apr 2024 05:49:40 +0000 (13:49 +0800)
committerGitHub <noreply@github.com>
Wed, 10 Apr 2024 05:49:40 +0000 (05:49 +0000)
commit88b3d192a0663bd5f25ffa07af45179bac755150
tree6107fd800c49b2b7c5f21c4d932f5c9602f33648
parent021ee8454abb99e13c80caef357d09ef12bf3026
Fix line height on inline code preview (#30372) (#30385)

Backport #30372 by @silverwind

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.

Co-authored-by: silverwind <me@silverwind.io>
web_src/css/base.css