Merge pull request #6759 from menloresearch/fix/font-json-editor
fix: font mono default from mcp json ediitor
This commit is contained in:
commit
b1abc97bda
@ -421,13 +421,12 @@ export default function AddEditMCPServer({
|
|||||||
}}
|
}}
|
||||||
onPaste={() => setError(null)}
|
onPaste={() => setError(null)}
|
||||||
style={{
|
style={{
|
||||||
fontFamily: 'ui-monospace',
|
|
||||||
backgroundColor: 'transparent',
|
backgroundColor: 'transparent',
|
||||||
wordBreak: 'break-all',
|
wordBreak: 'break-all',
|
||||||
overflowWrap: 'anywhere',
|
overflowWrap: 'anywhere',
|
||||||
whiteSpace: 'pre-wrap',
|
whiteSpace: 'pre-wrap',
|
||||||
}}
|
}}
|
||||||
className="w-full !text-sm min-h-[300px]"
|
className="w-full !text-sm min-h-[300px] !font-mono"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{error && <div className="text-destructive text-sm">{error}</div>}
|
{error && <div className="text-destructive text-sm">{error}</div>}
|
||||||
|
|||||||
@ -93,13 +93,12 @@ export default function EditJsonMCPserver({
|
|||||||
onChange={(e) => setJsonContent(e.target.value)}
|
onChange={(e) => setJsonContent(e.target.value)}
|
||||||
onPaste={handlePaste}
|
onPaste={handlePaste}
|
||||||
style={{
|
style={{
|
||||||
fontFamily: 'ui-monospace',
|
|
||||||
backgroundColor: 'transparent',
|
backgroundColor: 'transparent',
|
||||||
wordBreak: 'break-all',
|
wordBreak: 'break-all',
|
||||||
overflowWrap: 'anywhere',
|
overflowWrap: 'anywhere',
|
||||||
whiteSpace: 'pre-wrap',
|
whiteSpace: 'pre-wrap',
|
||||||
}}
|
}}
|
||||||
className="w-full !text-sm overflow-hidden break-all"
|
className="w-full !text-sm overflow-hidden !break-all !font-mono"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{error && <div className="text-destructive text-sm">{error}</div>}
|
{error && <div className="text-destructive text-sm">{error}</div>}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user