mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-11 04:48:00 +03:00
Improve rendering of multi-line %exp messages
This commit is contained in:
parent
1ce3d5af7a
commit
e5f0e136e9
@ -86,8 +86,8 @@ export class Message extends Component {
|
||||
|
||||
renderExp(expression, result) {
|
||||
return (<>
|
||||
<p><code># {expression}</code></p>
|
||||
<p><code>{result[0]}</code></p>
|
||||
<p><pre className="clamp-attachment">{expression}</pre></p>
|
||||
<p><pre className="clamp-attachment">{result[0].join('\n')}</pre></p>
|
||||
</>);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user