diff options
author | Giteabot <teabot@gitea.io> | 2024-06-11 13:30:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-11 13:30:02 +0800 |
commit | c1c11aaf6043fca35f499e8db8bf384626958806 (patch) | |
tree | 88ad7b01b35942f0d6ac0438b5387ad18b2f06d9 /web_src | |
parent | abc92df701bbae8b5d1d98ba91b609d03ce4d7b5 (diff) | |
download | gitea-c1c11aaf6043fca35f499e8db8bf384626958806.tar.gz gitea-c1c11aaf6043fca35f499e8db8bf384626958806.zip |
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>
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/css/base.css | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/web_src/css/base.css b/web_src/css/base.css index 69e9cc41a2..56425fb1a1 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -1005,8 +1005,6 @@ overflow-menu .ui.label { padding: 0 8px; text-align: right !important; color: var(--color-text-light-2); - width: 1%; - font-family: var(--fonts-monospace); } .lines-num span.bottom-line::after { |