refactor: improve code readability in RunningAgentsView component

- Reformatted JSX for better clarity and consistency.
- Enhanced the layout of the feature description prop for improved maintainability.
This commit is contained in:
Shirone
2025-12-29 16:10:33 +01:00
parent 0317dadcaf
commit 67a6c10edc

View File

@@ -174,7 +174,10 @@ export function RunningAgentsView() {
)}
</div>
{agent.description && (
<p className="text-sm text-muted-foreground truncate max-w-md" title={agent.description}>
<p
className="text-sm text-muted-foreground truncate max-w-md"
title={agent.description}
>
{agent.description}
</p>
)}
@@ -228,7 +231,9 @@ export function RunningAgentsView() {
open={true}
onClose={() => setSelectedAgent(null)}
projectPath={selectedAgent.projectPath}
featureDescription={selectedAgent.description || selectedAgent.title || selectedAgent.featureId}
featureDescription={
selectedAgent.description || selectedAgent.title || selectedAgent.featureId
}
featureId={selectedAgent.featureId}
featureStatus="running"
/>