Skip to content

Commit 1b3c1f1

Browse files
authored
🤖 feat: monospace font in chat input for vim mode (#937)
Uses monospace font for the chat input textarea when vim mode is enabled, providing better visual indication that vim keybindings are active. The font switches conditionally based on the `vimEnabled` state - it applies in both insert and normal vim modes when vim is toggled on. _Generated with `mux`_
1 parent cf61afe commit 1b3c1f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/browser/components/VimTextArea.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,8 @@ export const VimTextArea = React.forwardRef<HTMLTextAreaElement, VimTextAreaProp
250250
...(trailingAction ? { scrollbarGutter: "stable both-edges" } : {}),
251251
}}
252252
className={cn(
253-
"w-full border text-light py-1.5 px-2 rounded font-sans text-[13px] resize-none min-h-8 max-h-[50vh] overflow-y-auto",
253+
"w-full border text-light py-1.5 px-2 rounded text-[13px] resize-none min-h-8 max-h-[50vh] overflow-y-auto",
254+
vimEnabled ? "font-monospace" : "font-sans",
254255
"placeholder:text-placeholder",
255256
"focus:outline-none",
256257
trailingAction && "pr-10",

0 commit comments

Comments
 (0)