Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

add next/image to twitter profile images

Jonathan Summers-Muira36cb6fc9d6c
diff --git a/www/components/TweetCard.tsx b/www/components/TweetCard.tsx
index 8ba3e290a2a..46709fac114 100644
--- a/www/components/TweetCard.tsx
+++ b/www/components/TweetCard.tsx
@@ -1,4 +1,5 @@
import { IconTwitter, Typography } from '@supabase/ui'
+import Image from 'next/image'
interface TweetCard {
handle: string
@@ -10,7 +11,9 @@ function TweetCard(props: TweetCard) {
return (
<div className="bg-white dark:bg-dark-800 rounded-lg border border-gray-100 dark:border-gray-600 p-6">
<div className="relative">
- <img className="rounded-md w-12 border dark:border-gray-600" src={props.img_url} />
+ <div className="rounded-md w-12 h-12 border dark:border-gray-600 overflow-hidden">
+ <Image src={props.img_url} layout="responsive" width="64" height="64" />
+ </div>
<div
className="absolute -top-2 -left-2 w-6 h-6 flex justify-center items-center rounded-md"
style={{ background: '#00acee' }}