Skip to content

Commit e496ee8

Browse files
authored
Merge pull request #1816 from dubinc/fix-text-truncation
Fix text truncation on customer row
2 parents 3bd8fe5 + 76401e1 commit e496ee8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

apps/web/ui/analytics/events/customer-row-item.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ export function CustomerRowItem({ customer }: { customer: Customer }) {
1919
}) as string
2020
}
2121
scroll={false}
22-
className="flex w-full items-center justify-between px-4 py-2.5 transition-colors hover:bg-stone-100"
22+
className="flex w-full items-center justify-between gap-2 px-4 py-2.5 transition-colors hover:bg-stone-100"
2323
>
24-
<div className="flex items-center gap-3" title={display}>
24+
<div className="flex items-center gap-3 truncate" title={display}>
2525
<img
2626
alt={display}
2727
src={customer.avatar || ""}
2828
className="size-4 shrink-0 rounded-full border border-gray-200"
2929
/>
3030
<span className="truncate">{display}</span>
3131
</div>
32-
<ChartActivity2 className="size-3.5" />
32+
<ChartActivity2 className="size-3.5 shrink-0" />
3333
</Link>
3434
</>
3535
);

apps/web/ui/analytics/events/events-table.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ export default function EventsTable({
136136
<CopyText
137137
value={getValue().shortLink}
138138
successMessage="Copied link to clipboard!"
139+
className="truncate"
139140
>
140141
<span className="truncate" title={getValue().shortLink}>
141142
{getPrettyUrl(getValue().shortLink)}

0 commit comments

Comments
 (0)