Skip to content

Commit 83f4ff0

Browse files
committed
🤖 style: use monospace font for MCP command inputs
Also disable spellcheck on the add command input.
1 parent bd25b29 commit 83f4ff0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/browser/components/Settings/sections/ProjectSettingsSection.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ export const ProjectSettingsSection: React.FC = () => {
294294
type="text"
295295
value={editCommand}
296296
onChange={(e) => setEditCommand(e.target.value)}
297-
className="border-border-medium bg-secondary/30 text-foreground placeholder:text-muted-foreground focus:ring-accent mt-1 w-full rounded-md border px-2 py-1 text-xs focus:ring-1 focus:outline-none"
297+
className="border-border-medium bg-secondary/30 text-foreground placeholder:text-muted-foreground focus:ring-accent mt-1 w-full rounded-md border px-2 py-1 font-mono text-xs focus:ring-1 focus:outline-none"
298298
autoFocus
299299
spellCheck={false}
300300
onKeyDown={createEditKeyHandler({
@@ -303,7 +303,9 @@ export const ProjectSettingsSection: React.FC = () => {
303303
})}
304304
/>
305305
) : (
306-
<p className="text-muted-foreground mt-0.5 text-xs break-all">{command}</p>
306+
<p className="text-muted-foreground mt-0.5 font-mono text-xs break-all">
307+
{command}
308+
</p>
307309
)}
308310
</div>
309311
<div className="flex shrink-0 gap-1">
@@ -412,7 +414,8 @@ export const ProjectSettingsSection: React.FC = () => {
412414
placeholder="e.g., npx -y @modelcontextprotocol/server-memory"
413415
value={newServerCommand}
414416
onChange={(e) => setNewServerCommand(e.target.value)}
415-
className="border-border-medium bg-secondary/30 text-foreground placeholder:text-muted-foreground focus:ring-accent w-full rounded-md border px-3 py-2 text-sm focus:ring-1 focus:outline-none"
417+
spellCheck={false}
418+
className="border-border-medium bg-secondary/30 text-foreground placeholder:text-muted-foreground focus:ring-accent w-full rounded-md border px-3 py-2 font-mono text-sm focus:ring-1 focus:outline-none"
416419
/>
417420
</div>
418421

0 commit comments

Comments
 (0)