Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Fix squashed browser icons in Events table (#4446)

Steven Teyb9f4edd94a41
diff --git a/apps/web/ui/analytics/device-icon.tsx b/apps/web/ui/analytics/device-icon.tsx
index 56cdbac816..5e16221a74 100644
--- a/apps/web/ui/analytics/device-icon.tsx
+++ b/apps/web/ui/analytics/device-icon.tsx
@@ -12,6 +12,7 @@ import {
Watch,
Window,
} from "@dub/ui/icons";
+import { cn } from "@dub/utils";
import { TRIGGER_DISPLAY } from "./trigger-display";
export function DeviceIcon({
@@ -56,7 +57,8 @@ export function DeviceIcon({
alt={display}
width={20}
height={20}
- className={className}
+ // Non-square sources (e.g. Facebook/Instagram at 3:2) squash without this
+ className={cn(className, "object-cover")}
/>
);
}