Skip to content

Commit f11dafb

Browse files
fengju0213dev-miro26
authored andcommitted
chore: prevent long task text from overflowing the ChatBox task card (eigent-ai#1505)
1 parent eccc9fb commit f11dafb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/ChatBox/TaskBox/TaskCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,9 +459,9 @@ export function TaskCard({
459459
<Circle size={16} className="text-icon-secondary" />
460460
)}
461461
</div>
462-
<div className="flex flex-1 flex-col items-start justify-center">
462+
<div className="flex min-w-0 flex-1 flex-col items-start justify-center">
463463
<div
464-
className={`overflow-wrap-anywhere w-full whitespace-pre-line break-words ${
464+
className={`w-full min-w-0 whitespace-pre-line break-words [overflow-wrap:anywhere] ${
465465
task.status === TaskStatus.FAILED
466466
? 'text-text-cuation-default'
467467
: task.status === TaskStatus.BLOCKED

0 commit comments

Comments
 (0)