mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 04:01:56 +00:00
Fix javascript-repl renderer to use console-block component
This commit is contained in:
parent
8212623af0
commit
9d6267a915
5 changed files with 55 additions and 34 deletions
|
|
@ -286,11 +286,7 @@ export const javascriptReplRenderer: ToolRenderer<JavaScriptReplParams, JavaScri
|
|||
|
||||
return html`
|
||||
<div class="flex flex-col gap-3">
|
||||
${
|
||||
output
|
||||
? html`<div class="font-mono text-xs whitespace-pre-wrap bg-muted/50 p-3 rounded-md border">${output}</div>`
|
||||
: ""
|
||||
}
|
||||
${output ? html`<console-block .content=${output}></console-block>` : ""}
|
||||
${
|
||||
attachments.length
|
||||
? html`<div class="flex flex-wrap gap-2">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue