Skip to content

Commit 33ad044

Browse files
fix: image styling
1 parent 96a5831 commit 33ad044

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

packages/debugger/app/components/frame-app-debugger-view-profile-dialog.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @next/next/no-img-element */
12
import React from "react";
23
import {
34
Dialog,
@@ -78,13 +79,14 @@ export function FrameAppDebuggerViewProfileDialog({
7879
{query.isSuccess && (
7980
<DialogDescription className="flex flex-col gap-2 items-center justify-center">
8081
<div className="flex items-center">
81-
<Image
82-
src={query.data.pfp_url}
83-
alt={query.data.username}
84-
width={80}
85-
height={80}
86-
className="rounded-full"
87-
/>
82+
<div className="aspect-square h-[80px] w-[80px] rounded-full overflow-hidden">
83+
<img
84+
className="w-full h-full object-contain"
85+
src={query.data.pfp_url}
86+
alt={query.data.username}
87+
width={80}
88+
/>
89+
</div>
8890
</div>
8991
<strong className="text-lg">{query.data.username}</strong>
9092
<div className="grid grid-cols-2 gap-4 text-sm text-gray-500 text-center">

0 commit comments

Comments
 (0)