mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 15:02:32 +00:00
Use Spacer component for blank line before tool execution
This commit is contained in:
parent
c061b4fba9
commit
0cceb346be
2 changed files with 12 additions and 12 deletions
|
|
@ -1,11 +1,11 @@
|
|||
import { Container, Text } from "@mariozechner/pi-tui";
|
||||
import { Container, Spacer, Text } from "@mariozechner/pi-tui";
|
||||
import chalk from "chalk";
|
||||
|
||||
/**
|
||||
* Component that renders a tool call with its result (updateable)
|
||||
*/
|
||||
export class ToolExecutionComponent extends Container {
|
||||
private spacerText: Text;
|
||||
private spacer: Spacer;
|
||||
private contentText: Text;
|
||||
private toolName: string;
|
||||
private args: any;
|
||||
|
|
@ -16,8 +16,8 @@ export class ToolExecutionComponent extends Container {
|
|||
this.toolName = toolName;
|
||||
this.args = args;
|
||||
// Blank line with no background for spacing
|
||||
this.spacerText = new Text("\n", 0, 0);
|
||||
this.addChild(this.spacerText);
|
||||
this.spacer = new Spacer(1);
|
||||
this.addChild(this.spacer);
|
||||
// Content with colored background and padding
|
||||
this.contentText = new Text("", 1, 1, { r: 40, g: 40, b: 50 });
|
||||
this.addChild(this.contentText);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue