mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 10:02:47 +03:00
chat: add monospace -> source code pro
This commit is contained in:
parent
f7a2e043a3
commit
d3b5e34c2d
@ -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}
|
||||||
|
@ -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';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user