Truncate long agent descriptions text (#7924)

Truncate long agent descriptions to prevent overflow outside the agent
card container

### What problem does this PR solve?

Now the Long text of description will overflow from the agent card,
should display the long text properly with truncate.

<img width="275" alt="Screenshot 2025-05-28 220329"
src="https://github.com/user-attachments/assets/954b3a48-bcab-4669-a42f-6981d4bf859f"
/>

<img width="275" alt="Screenshot 2025-05-28 220353"
src="https://github.com/user-attachments/assets/f385d95a-3e40-4117-b412-ae6a4508e646"
/>


### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
- [ ] New Feature (non-breaking change which adds functionality)
- [ ] Documentation Update
- [ ] Refactoring
- [ ] Performance Improvement
- [ ] Other (please describe):
This commit is contained in:
Jason Li 2025-05-29 05:10:02 +02:00 committed by GitHub
parent 81b306aac9
commit 64f930b1c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -51,7 +51,9 @@ const FlowCard = ({ item }: IProps) => {
>
{item.title}
</Typography.Title>
<p>{item.description}</p>
<p className="truncate" title={item.description}>
{item.description}
</p>
</div>
<div className={styles.footer}>
<div className={styles.bottom}>