Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

updated codemirror theme

kachbit168d4b035b75
diff --git a/frontend/src/components/CodeMirror.tsx b/frontend/src/components/CodeMirror.tsx
index 3ba1c51e..9f299760 100644
--- a/frontend/src/components/CodeMirror.tsx
+++ b/frontend/src/components/CodeMirror.tsx
@@ -1,7 +1,7 @@
import { useRef, useEffect } from "react";
import { EditorState } from "@codemirror/state";
import { EditorView, keymap, lineNumbers } from "@codemirror/view";
-import { cobalt } from "thememirror";
+import { espresso } from "thememirror";
import {
defaultKeymap,
history,
@@ -36,7 +36,7 @@ function CodeMirror({ code }: Props) {
lineNumbers(),
bracketMatching(),
html(),
- cobalt,
+ espresso,
EditorView.lineWrapping,
],
}),
@@ -60,6 +60,6 @@ function CodeMirror({ code }: Props) {
}
}, [code]);
- return <div className="overflow-x-scroll overflow-y-scroll mx-2" ref={ref} />;
+ return <div className="overflow-x-scroll overflow-y-scroll mx-2 border-[4px] border-black rounded-[20px]" ref={ref} />;
}
export default CodeMirror;