Skip to content

Commit ccb5d23

Browse files
Render platform icons as images for cross-browser reliability
1 parent 8128c88 commit ccb5d23

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

src/components/platform-icons.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ export function PlatformIcons({ app, className }: PlatformIconsProps) {
1212
return (
1313
<div className={className ?? "flex flex-wrap items-center gap-3 leading-none"}>
1414
{icons.map((icon) => (
15-
<span key={`${app.title}-${icon}`} className="inline-flex h-4 w-4 items-center justify-center text-zinc-400">
16-
<span
17-
className="discover-platform-icon h-4 w-4"
18-
style={{ ["--platform-icon-url" as string]: `url(${icon})` }}
19-
aria-hidden="true"
20-
/>
21-
</span>
15+
<img
16+
key={`${app.title}-${icon}`}
17+
src={icon}
18+
alt=""
19+
aria-hidden="true"
20+
className="h-4 w-4 opacity-45"
21+
loading="lazy"
22+
/>
2223
))}
2324
</div>
2425
);

0 commit comments

Comments
 (0)