Skip to content

Commit 5f8802f

Browse files
committed
Use base styling for MRVA results font
It's been pointed out that MRVA results are hard to read as the font is small and narrowly spaced. It also doesn't match the font type normally used in source files. We can instead switch to using the font-family used by VS Code itself and increase the font size from `x-small` to `small` for code snippets.
1 parent d41c63b commit 5f8802f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extensions/ql-vscode/src/remote-queries/view/FileCodeSnippet.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ const getSeverityColor = (severity: ResultSeverity) => {
2424
const replaceSpaceAndTabChar = (text: string) => text.replaceAll(' ', '\u00a0').replaceAll('\t', '\u00a0\u00a0\u00a0\u00a0');
2525

2626
const Container = styled.div`
27-
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
28-
font-size: x-small;
27+
font-family: var(--vscode-editor-font-family);
28+
font-size: small;
2929
`;
3030

3131
const TitleContainer = styled.div`
@@ -46,7 +46,7 @@ const CodeContainer = styled.div`
4646
`;
4747

4848
const MessageText = styled.div`
49-
font-size: x-small;
49+
font-size: small;
5050
padding-left: 0.5em;
5151
`;
5252

0 commit comments

Comments
 (0)