Skip to content

Commit 14a3c91

Browse files
committed
Adds ellipses if character limits exceed 150 for desc
1 parent a585d9e commit 14a3c91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/packages/lowcoder/src/pages/ApplicationV2/HomeResCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ export function HomeResCard(props: { res: HomeRes; onMove: (res: HomeRes) => voi
332332
type="secondary"
333333
style={{ fontSize: 12, textWrap: "wrap"}}
334334
>
335-
{res?.description}
335+
{res.description.length > 150 ? res.description.substring(0, 150) + '...' : res.description}
336336
</Typography.Text>}
337337

338338
<AppTimeOwnerInfoLabel title={subTitle}>{subTitle}</AppTimeOwnerInfoLabel>

0 commit comments

Comments
 (0)