From 7d4135d0ecd851d7932ae2378f643a711e0eea20 Mon Sep 17 00:00:00 2001 From: Florian Scholdei Date: Fri, 3 Apr 2020 11:11:59 +0200 Subject: [PATCH] Ensure same monospace font throughout whole scmm --- scm-ui/ui-components/src/repos/TokenizedDiffView.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scm-ui/ui-components/src/repos/TokenizedDiffView.tsx b/scm-ui/ui-components/src/repos/TokenizedDiffView.tsx index cfa5232069..c012742dbd 100644 --- a/scm-ui/ui-components/src/repos/TokenizedDiffView.tsx +++ b/scm-ui/ui-components/src/repos/TokenizedDiffView.tsx @@ -44,9 +44,11 @@ const DiffView = styled(Diff)` > .diff-gutter:empty:hover::after { font-size: 0.7rem; } - /* smaller font size for code */ + /* smaller font size for code and + ensure same monospace font throughout whole scmm */ & .diff-line { font-size: 0.75rem; + font-family: "Courier New", Monaco, Menlo, "Ubuntu Mono", "source-code-pro", monospace; } /* comment padding for sidebyside view */ &.split .diff-widget-content .is-indented-line {