fix(ui): stabilize workplace chat scrolling

This commit is contained in:
LZH-YS1998
2026-07-13 23:02:39 +08:00
parent 4e7aa75ba5
commit 4bc18dcd27
46 changed files with 5937 additions and 1258 deletions
@@ -542,8 +542,8 @@ export function WorkItemProgressCard({
return isCompanyRuntime ? [] : workItemLogWorkItems
}, [isCompanyRuntime, roleSummaries, workItemLogWorkItems])
if (isCompanyRuntime && roleSummaries.length === 0) return null
if (workItemLog.length === 0 && workItems.length === 0 && roleSummaries.length === 0) return null
const isPreparingCompanyRuntime = isCompanyRuntime && roleSummaries.length === 0
if (!isCompanyRuntime && workItemLog.length === 0 && workItems.length === 0 && roleSummaries.length === 0) return null
return (
<div className="wi-progress-card">
@@ -571,6 +571,12 @@ export function WorkItemProgressCard({
</div>
)}
{isPreparingCompanyRuntime && (
<div className="wi-progress-pipeline wi-progress-pipeline-empty" role="status">
Preparing company roles
</div>
)}
</div>
)
}