Skip to content

Commit 134e486

Browse files
committed
Touch up the linting error elements in the code editor component
1 parent 09ecc22 commit 134e486

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

apps/webapp/app/components/code/codeMirrorTheme.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,32 @@ export function darkTheme(): Extension {
3939
fontSize: "14px",
4040
},
4141

42+
".cm-tooltip.cm-tooltip-lint": {
43+
backgroundColor: tooltipBackground,
44+
},
45+
46+
".cm-diagnostic": {
47+
padding: "4px 8px",
48+
color: ivory,
49+
fontFamily: "Geist Mono Variable",
50+
fontSize: "12px",
51+
},
52+
53+
".cm-diagnostic-error": {
54+
borderLeft: "2px solid #e11d48",
55+
},
56+
57+
".cm-lint-marker-error": {
58+
content: "none",
59+
backgroundColor: "#e11d48",
60+
height: "100%",
61+
width: "2px",
62+
},
63+
64+
".cm-lintPoint:after": {
65+
borderBottom: "4px solid #e11d48",
66+
},
67+
4268
".cm-cursor, .cm-dropCursor": { borderLeftColor: cursor },
4369
"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": {
4470
backgroundColor: selection,
@@ -82,6 +108,7 @@ export function darkTheme(): Extension {
82108

83109
".cm-tooltip": {
84110
border: "none",
111+
marginTop: "6px",
85112
backgroundColor: tooltipBackground,
86113
},
87114
".cm-tooltip .cm-tooltip-arrow:before": {

0 commit comments

Comments
 (0)