Skip to content

Commit c1c11aa

Browse files
GiteaBotsilverwind
andauthored
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 <[email protected]>
1 parent abc92df commit c1c11aa

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

web_src/css/base.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,8 +1005,6 @@ overflow-menu .ui.label {
10051005
padding: 0 8px;
10061006
text-align: right !important;
10071007
color: var(--color-text-light-2);
1008-
width: 1%;
1009-
font-family: var(--fonts-monospace);
10101008
}
10111009

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

0 commit comments

Comments
 (0)