feat(sendButton): 添加发送和暂停按钮图标及其状态管理功能
This commit is contained in:
@ -347,6 +347,27 @@ export function getWebviewContent(iconUri?: string): string {
|
||||
background: var(--vscode-charts-red);
|
||||
animation: none;
|
||||
}
|
||||
|
||||
/* 快捷操作按钮样式 */
|
||||
.quick-actions {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
margin-bottom: 15px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.quick-btn {
|
||||
padding: 8px 16px;
|
||||
background: var(--vscode-button-secondaryBackground);
|
||||
color: var(--vscode-button-secondaryForeground);
|
||||
border: 1px solid var(--vscode-button-border);
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
.quick-btn:hover {
|
||||
background: var(--vscode-button-secondaryHoverBackground);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@ -437,6 +458,10 @@ export function getWebviewContent(iconUri?: string): string {
|
||||
// 实时更新分段消息(按后端返回顺序)
|
||||
console.log('[WebView] 实时更新段落, segments:', message.segments);
|
||||
updateSegmentsRealtime(message.segments, message.isComplete);
|
||||
// 如果对话完成,恢复发送按钮状态
|
||||
if (message.isComplete && typeof setSendButtonState === 'function') {
|
||||
setSendButtonState(false);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'receiveSegments':
|
||||
|
||||
Reference in New Issue
Block a user