fix(ui): stabilize workplace chat scrolling
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user