Skip to content

Commit 397930d

Browse files
authored
Fix line number width in code preview (go-gitea#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.
1 parent 5342a61 commit 397930d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

web_src/css/base.css

-2
Original file line numberDiff line numberDiff line change
@@ -1001,8 +1001,6 @@ overflow-menu .ui.label {
10011001
padding: 0 8px;
10021002
text-align: right !important;
10031003
color: var(--color-text-light-2);
1004-
width: 1%;
1005-
font-family: var(--fonts-monospace);
10061004
}
10071005

10081006
.lines-num span.bottom-line::after {

0 commit comments

Comments
 (0)