Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix text truncation on customer row #1816

Merged
merged 2 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apps/web/ui/analytics/events/customer-row-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ export function CustomerRowItem({ customer }: { customer: Customer }) {
}) as string
}
scroll={false}
className="flex w-full items-center justify-between px-4 py-2.5 transition-colors hover:bg-stone-100"
className="flex w-full items-center justify-between gap-2 px-4 py-2.5 transition-colors hover:bg-stone-100"
>
<div className="flex items-center gap-3" title={display}>
<div className="flex items-center gap-3 truncate" title={display}>
<img
alt={display}
src={customer.avatar || ""}
className="size-4 shrink-0 rounded-full border border-gray-200"
/>
<span className="truncate">{display}</span>
</div>
<ChartActivity2 className="size-3.5" />
<ChartActivity2 className="size-3.5 shrink-0" />
</Link>
</>
);
Expand Down
1 change: 1 addition & 0 deletions apps/web/ui/analytics/events/events-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export default function EventsTable({
<CopyText
value={getValue().shortLink}
successMessage="Copied link to clipboard!"
className="truncate"
>
<span className="truncate" title={getValue().shortLink}>
{getPrettyUrl(getValue().shortLink)}
Expand Down
Loading