Merge pull request #6759 from menloresearch/fix/font-json-editor

fix: font mono default from mcp json ediitor
This commit is contained in:
Faisal Amir 2025-10-08 10:20:11 +07:00 committed by GitHub
commit b1abc97bda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View File

@ -421,13 +421,12 @@ export default function AddEditMCPServer({
}}
onPaste={() => setError(null)}
style={{
fontFamily: 'ui-monospace',
backgroundColor: 'transparent',
wordBreak: 'break-all',
overflowWrap: 'anywhere',
whiteSpace: 'pre-wrap',
}}
className="w-full !text-sm min-h-[300px]"
className="w-full !text-sm min-h-[300px] !font-mono"
/>
</div>
{error && <div className="text-destructive text-sm">{error}</div>}

View File

@ -93,13 +93,12 @@ export default function EditJsonMCPserver({
onChange={(e) => setJsonContent(e.target.value)}
onPaste={handlePaste}
style={{
fontFamily: 'ui-monospace',
backgroundColor: 'transparent',
wordBreak: 'break-all',
overflowWrap: 'anywhere',
whiteSpace: 'pre-wrap',
}}
className="w-full !text-sm overflow-hidden break-all"
className="w-full !text-sm overflow-hidden !break-all !font-mono"
/>
</div>
{error && <div className="text-destructive text-sm">{error}</div>}