chat: add monospace -> source code pro

This commit is contained in:
Matilde Park 2020-08-18 17:20:15 -04:00
parent f7a2e043a3
commit d3b5e34c2d
2 changed files with 4 additions and 4 deletions

View File

@ -11,14 +11,14 @@ export default class CodeContent extends Component {
(Boolean(content.code.output) && (Boolean(content.code.output) &&
content.code.output.length && content.code.output.length > 0) ? content.code.output.length && content.code.output.length > 0) ?
( (
<pre className={`f7 clamp-attachment pa1 mt0 mb0 b--gray4 b--gray1-d bl br bb`}> <pre className={`code f7 clamp-attachment pa1 mt0 mb0 b--gray4 b--gray1-d bl br bb`}>
{content.code.output[0].join('\n')} {content.code.output[0].join('\n')}
</pre> </pre>
) : null; ) : null;
return ( return (
<div className="mv2"> <div className="mv2">
<pre className={`f7 clamp-attachment pa1 mt0 mb0 bg-light-gray b--gray4 b--gray1-d ba`}> <pre className={`code f7 clamp-attachment pa1 mt0 mb0 bg-light-gray b--gray4 b--gray1-d ba`}>
{content.code.expression} {content.code.expression}
</pre> </pre>
{outputElement} {outputElement}

View File

@ -256,7 +256,7 @@ blockquote {
font-family: 'Inter'; font-family: 'Inter';
} }
.code, .chat.code .react-codemirror2 .CodeMirror * { code, .code, .chat.code .react-codemirror2 .CodeMirror * {
font-family: 'Source Code Pro'; font-family: 'Source Code Pro';
} }