Skip to content

Commit

Permalink
Fix line number width in code preview (#31307) (#31316)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
GiteaBot and silverwind authored Jun 11, 2024
1 parent abc92df commit c1c11aa
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions web_src/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c1c11aa

Please sign in to comment.