Skip to content

Commit c59b6fd

Browse files
committed
fix: image size on Speakers page
1 parent 1217fb8 commit c59b6fd

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

Diff for: src/components/speakers/Speaker.tsx

+15-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,21 @@ export function Speaker({
4343
</svg>
4444
</button>
4545
) : null}
46-
<picture className="object-cover rounded-md aspect-square p-0.5">
47-
<source srcSet={avatar_url} type="image/webp" />
48-
<img alt="Speaker's photo" src={avatar_url} />
46+
<picture>
47+
<source
48+
srcSet={avatar_url}
49+
type="image/webp"
50+
width={350}
51+
height={350}
52+
className="aspect-square object-cover rounded-md"
53+
/>
54+
<img
55+
alt="Speaker's photo"
56+
src={avatar_url}
57+
width={350}
58+
height={350}
59+
className="aspect-square object-cover rounded-md"
60+
/>
4961
</picture>
5062
<div className="py-2">
5163
<h1 className="text-lg font-medium text-white">{name}</h1>

0 commit comments

Comments
 (0)