aboutsummaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2024-06-11 06:54:39 +0200
committerGitHub <noreply@github.com>2024-06-11 04:54:39 +0000
commit397930d8c1ffaeefbfec438908b8ddfc75de249a (patch)
treed6ee9b59291ebe00ade7ec8e3ce993c6c5657ffa /web_src
parent5342a61124bf2d4fbe4c1d560b13866198149ac9 (diff)
downloadgitea-397930d8c1ffaeefbfec438908b8ddfc75de249a.tar.gz
gitea-397930d8c1ffaeefbfec438908b8ddfc75de249a.zip
Fix line number width in code preview (#31307)
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.
Diffstat (limited to 'web_src')
-rw-r--r--web_src/css/base.css2
1 files changed, 0 insertions, 2 deletions
diff --git a/web_src/css/base.css b/web_src/css/base.css
index 0e54d17262..3bdcde99f6 100644
--- a/web_src/css/base.css
+++ b/web_src/css/base.css
@@ -1001,8 +1001,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 {