Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

feat: improve vim mode style (#330)

Tom Lienarded324bdb6f99
diff --git a/src/components/challenge/code-panel/vimMode.tsx b/src/components/challenge/code-panel/vimMode.tsx
index a1a345d1..6316e6e7 100644
--- a/src/components/challenge/code-panel/vimMode.tsx
+++ b/src/components/challenge/code-panel/vimMode.tsx
@@ -7,7 +7,8 @@ import { type VimMode, initVimMode } from 'monaco-vim';
interface VimStatusBarProps {
editor: monaco.editor.IStandaloneCodeEditor;
-}
+};
+
export const VimStatusBar = ({ editor }: VimStatusBarProps) => {
const statusBarRef = useRef<HTMLDivElement | null>(null);
const vimModeRef = useRef<VimMode>();
@@ -29,7 +30,7 @@ export const VimStatusBar = ({ editor }: VimStatusBarProps) => {
return (
<div className="flex w-full">
- <div ref={statusBarRef} className="font-mono" />
+ <div ref={statusBarRef} className="text-sm font-mono gap-2 [&>*:first-child]:mr-2 [&_input]:bg-transparent [&_input]:border-none [&_input]:outline-none" />
</div>
);
};