mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
fix: type errors
This commit is contained in:
parent
1976837eda
commit
acb93b1e1b
43 changed files with 367 additions and 342 deletions
|
|
@ -189,9 +189,9 @@ export const ToolMessage: React.FC<ToolMessageProps> = ({
|
|||
}) => {
|
||||
const availableHeight = availableTerminalHeight
|
||||
? Math.max(
|
||||
availableTerminalHeight - STATIC_HEIGHT - RESERVED_LINE_COUNT,
|
||||
MIN_LINES_SHOWN + 1, // enforce minimum lines shown
|
||||
)
|
||||
availableTerminalHeight - STATIC_HEIGHT - RESERVED_LINE_COUNT,
|
||||
MIN_LINES_SHOWN + 1, // enforce minimum lines shown
|
||||
)
|
||||
: undefined;
|
||||
|
||||
// Long tool call response in MarkdownDisplay doesn't respect availableTerminalHeight properly,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue