Skip to content

Commit ec89ef3

Browse files
authored
conf 2025 — fix meta sponsor logo on Safari (#2077)
* Make sure Meta logo shows up in Safari * Clean up code that didn't help solve the bug * Add a media prefix
1 parent dfeb8d0 commit ec89ef3

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/app/conf/2025/components/sponsors.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import Netflix from "public/img/conf/Sponsors/Netflix.svg?svgr"
44

55
import { clsx } from "clsx"
66
import { ChevronRight } from "../../_design-system/pixelarticons/chevron-right"
7-
import { ComponentPropsWithoutRef } from "react"
87

98
interface Sponsor {
109
icon:
@@ -51,19 +50,19 @@ const sponsorSilver: Sponsor[] = [
5150
},
5251
{
5352
icon: (props: React.HTMLAttributes<HTMLDivElement>) => (
54-
<div {...props} className={clsx(props.className, "relative")}>
53+
<div {...props} className={clsx(props.className, "relative size-full")}>
5554
<img
5655
src={
5756
new URL("/public/img/conf/Sponsors/Meta.svg", import.meta.url).href
5857
}
59-
className="absolute inset-0 dark:hidden"
58+
className="absolute inset-0 size-full object-cover dark:hidden"
6059
/>
6160
<img
6261
src={
6362
new URL("/public/img/conf/Sponsors/Meta-dark.svg", import.meta.url)
6463
.href
6564
}
66-
className="absolute inset-0 hidden dark:block"
65+
className="absolute inset-0 hidden size-full object-cover dark:block"
6766
/>
6867
</div>
6968
),
@@ -135,15 +134,15 @@ function Tier({ tier, logoHeight }: { tier: Tier; logoHeight: number }) {
135134
<ChevronRight className="shrink-0 translate-y-[-0.5px]" />
136135
{tier.name}
137136
</h3>
138-
<div className="flex flex-wrap justify-center gap-y-4">
137+
<div className="flex min-w-[70%] flex-wrap justify-center gap-y-4">
139138
{tier.items.map(({ link, icon: Icon, name }, i) => (
140139
<a
141140
key={i}
142141
href={link}
143142
target="_blank"
144143
rel="noreferrer"
145144
title={name}
146-
className="group flex min-h-24 items-center justify-center hover:bg-neu-500/10 dark:opacity-90 dark:hover:opacity-100"
145+
className="group flex min-h-24 grow items-center justify-center hover:bg-neu-500/10 dark:opacity-90 dark:hover:opacity-100 md:basis-1/2"
147146
>
148147
<Icon
149148
className="aspect-[3] w-auto max-w-[80%] shrink-0"

0 commit comments

Comments
 (0)