Skip to content

Commit 68b4e9e

Browse files
refactor(components): update margins in ToolApproval
1 parent f908648 commit 68b4e9e

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

src/components/ToolApproval.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,15 @@ export function ToolApproval({ toolCall, onDecision }: Props) {
3232
const args = JSON.stringify(toolCall.function.arguments, null, 2);
3333

3434
return (
35-
<Box flexDirection="column" marginY={1}>
36-
<Text color="yellow" bold>
37-
⚠️ Tool requires approval:
38-
</Text>
35+
<Box flexDirection="column">
36+
<Text color="yellow">⚠️ Tool requires approval:</Text>
3937

40-
<Box marginX={2} flexDirection="column">
38+
<Box marginX={3} marginBottom={1} flexDirection="column">
4139
<Text>
42-
<Text bold>Tool:</Text> {toolCall.function.name}
40+
<Text italic>Tool:</Text> {toolCall.function.name}
4341
</Text>
4442
<Text>
45-
<Text bold>Arguments:</Text> {args}
43+
<Text italic>Arguments:</Text> {args}
4644
</Text>
4745
</Box>
4846

0 commit comments

Comments
 (0)