]> source.dussan.org Git - gitea.git/commit
Fix line number width in code preview (#31307) (#31316)
authorGiteabot <teabot@gitea.io>
Tue, 11 Jun 2024 05:30:02 +0000 (13:30 +0800)
committerGitHub <noreply@github.com>
Tue, 11 Jun 2024 05:30:02 +0000 (13:30 +0800)
commitc1c11aaf6043fca35f499e8db8bf384626958806
tree88ad7b01b35942f0d6ac0438b5387ad18b2f06d9
parentabc92df701bbae8b5d1d98ba91b609d03ce4d7b5
Fix line number width in code preview (#31307) (#31316)

Backport #31307 by silverwind

Line numbers were using some hacky CSS `width: 1%` that did nothing to
the code rendering as far as I can tell but broken the inline preview in
markup when line numbers are greater than 2 digits. Also I removed one
duplicate `font-family` rule (it is set below in the `.lines-num,
.lines-code` selector.

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