Skip to content

Commit 13df265

Browse files
Adjust action buttons
Stack buttons vertically and reduce their size in the affiliate table row.
1 parent d0b85fc commit 13df265

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/components/AffiliateTableRow.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,30 +46,30 @@ export const AffiliateTableRow = ({ affiliate, onEdit, onCopyTrackingLink, onDel
4646
<AffiliatePaymentAmount affiliateId={affiliate.id} />
4747
</TableCell>
4848
<TableCell className="w-[10%] max-w-0 overflow-hidden">
49-
<div className="flex items-center justify-end gap-1">
49+
<div className="flex flex-col items-center justify-center gap-1">
5050
<Button
5151
variant="outline"
5252
size="sm"
5353
onClick={() => onEdit(affiliate)}
54-
className="rounded-lg h-8 w-8 p-0"
54+
className="rounded-lg h-6 w-6 p-0"
5555
>
56-
<Edit2 className="h-3 w-3" />
56+
<Edit2 className="h-2.5 w-2.5" />
5757
</Button>
5858
<Button
5959
variant="outline"
6060
size="sm"
6161
onClick={() => onCopyTrackingLink(affiliate.id)}
62-
className="rounded-lg h-8 w-8 p-0"
62+
className="rounded-lg h-6 w-6 p-0"
6363
>
64-
<Copy className="h-3 w-3" />
64+
<Copy className="h-2.5 w-2.5" />
6565
</Button>
6666
<Button
6767
variant="outline"
6868
size="sm"
6969
onClick={() => onDelete(affiliate)}
70-
className="rounded-lg h-8 w-8 p-0 text-red-600 hover:bg-red-50 hover:text-red-700 border-red-200"
70+
className="rounded-lg h-6 w-6 p-0 text-red-600 hover:bg-red-50 hover:text-red-700 border-red-200"
7171
>
72-
<X className="h-3 w-3" />
72+
<X className="h-2.5 w-2.5" />
7373
</Button>
7474
</div>
7575
</TableCell>

0 commit comments

Comments
 (0)