Skip to content

Commit

Permalink
webui: use system monospace font for patch box again
Browse files Browse the repository at this point in the history
Undo commit e31f2ca ("Use 'Liberation Mono' font for code
blocks"). I want my system's preference to be used again. Using
Liberation only there is also weird, because other places with
preformatted text, like the request review comment box, or the
package build log, still use the default monospace.

The "disappearing underscore" problem is caused by the line-height
directive, and *also* manifests in Chromium(!), starting with a
line-height of 105%. It turns out browsers have this weird idea that
the default line-height is "120%" and, as a result, any value less
than that shrinks the box. Throw out line-height for good.
  • Loading branch information
jengelh committed Dec 12, 2018
1 parent 0694cb9 commit 3b65c58
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.CodeMirror {
font-family: "Liberation Mono", monospace;
font-family: monospace;
font-size: 9pt;
height: auto;
}
Expand All @@ -20,7 +20,6 @@
Setting to hidden is ok here, the '.CodeMirror pre' elements
aren't supposed to be scrollable... */
overflow: hidden;
line-height: 1.1;
}

.toolbar {
Expand Down

0 comments on commit 3b65c58

Please sign in to comment.