fix: max height on bash tool

This commit is contained in:
Adam 2025-12-12 16:10:13 -06:00
parent bc3286de46
commit 91ab966921
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
2 changed files with 17 additions and 1 deletions

View file

@ -84,6 +84,22 @@
margin: 0;
padding: 0;
}
&[data-scrollable] {
height: auto;
max-height: 240px;
overflow-y: auto;
scrollbar-width: none;
-ms-overflow-style: none;
&::-webkit-scrollbar {
display: none;
}
[data-component="markdown"] {
overflow: visible;
}
}
}
[data-component="edit-trigger"],

View file

@ -328,7 +328,7 @@ ToolRegistry.register({
subtitle: props.input.description,
}}
>
<div data-component="tool-output">
<div data-component="tool-output" data-scrollable>
<Markdown
text={`\`\`\`command\n$ ${props.input.command}${props.output ? "\n\n" + props.output : ""}\n\`\`\``}
/>