Skip to content

Commit b9f4edd

Browse files
Fix squashed browser icons in Events table (#4446)
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1 parent d3d4b5e commit b9f4edd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

apps/web/ui/analytics/device-icon.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
Watch,
1313
Window,
1414
} from "@dub/ui/icons";
15+
import { cn } from "@dub/utils";
1516
import { TRIGGER_DISPLAY } from "./trigger-display";
1617

1718
export function DeviceIcon({
@@ -56,7 +57,8 @@ export function DeviceIcon({
5657
alt={display}
5758
width={20}
5859
height={20}
59-
className={className}
60+
// Non-square sources (e.g. Facebook/Instagram at 3:2) squash without this
61+
className={cn(className, "object-cover")}
6062
/>
6163
);
6264
}

0 commit comments

Comments
 (0)