fix: max height on bash tool
This commit is contained in:
parent
7bc072c9ad
commit
11100c4ba2
2 changed files with 17 additions and 1 deletions
|
|
@ -84,6 +84,22 @@
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 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"],
|
[data-component="edit-trigger"],
|
||||||
|
|
|
||||||
|
|
@ -328,7 +328,7 @@ ToolRegistry.register({
|
||||||
subtitle: props.input.description,
|
subtitle: props.input.description,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div data-component="tool-output">
|
<div data-component="tool-output" data-scrollable>
|
||||||
<Markdown
|
<Markdown
|
||||||
text={`\`\`\`command\n$ ${props.input.command}${props.output ? "\n\n" + props.output : ""}\n\`\`\``}
|
text={`\`\`\`command\n$ ${props.input.command}${props.output ? "\n\n" + props.output : ""}\n\`\`\``}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue