Skip to content

Commit af1dd03

Browse files
committed
refactor(EntitySelection): enhance button styling and improve label display for better readability
1 parent 9e1b6fc commit af1dd03

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

app/[locale]/dashboard/[entityType]/[entitySlug]/usecases/edit/[id]/contributors/EntitySelection.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,11 @@ const EntitySection = ({
6868
/>
6969
</div>
7070
<Button kind="tertiary" onClick={() => onRemove(item)}>
71-
<div className="flex flex-col items-center gap-2 rounded-2 p-2 bg-greyExtralight">
72-
<div className="flex items-center gap-2">
73-
<Text>{item.label}</Text>
71+
<div className="flex flex-col items-center gap-2 rounded-2 bg-greyExtralight p-2">
72+
<div className="flex gap-2 items-center ">
73+
<Text className="line-clamp-2 max-w-40 " title={item.label}>
74+
{item.label}
75+
</Text>
7476
<Icon source={Icons.cross} size={18} />
7577
</div>
7678
</div>

app/[locale]/dashboard/[entityType]/[entitySlug]/usecases/edit/[id]/contributors/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ const Details = () => {
309309
}}
310310
kind="tertiary"
311311
>
312-
<div className="flex items-center gap-2 rounded-2 bg-greyExtralight p-2 ">
312+
<div className="flex items-center gap-2 max-w-40 rounded-2 bg-greyExtralight p-2 ">
313313
<Text>{item.label}</Text>
314314
<Icon source={Icons.cross} size={18} />
315315
</div>

0 commit comments

Comments
 (0)