Skip to content

Commit

Permalink
fix: image styling
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkvasnicak committed Jan 16, 2025
1 parent 96a5831 commit 33ad044
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @next/next/no-img-element */
import React from "react";
import {
Dialog,
Expand Down Expand Up @@ -78,13 +79,14 @@ export function FrameAppDebuggerViewProfileDialog({
{query.isSuccess && (
<DialogDescription className="flex flex-col gap-2 items-center justify-center">
<div className="flex items-center">
<Image
src={query.data.pfp_url}
alt={query.data.username}
width={80}
height={80}
className="rounded-full"
/>
<div className="aspect-square h-[80px] w-[80px] rounded-full overflow-hidden">
<img
className="w-full h-full object-contain"
src={query.data.pfp_url}
alt={query.data.username}
width={80}
/>
</div>
</div>
<strong className="text-lg">{query.data.username}</strong>
<div className="grid grid-cols-2 gap-4 text-sm text-gray-500 text-center">
Expand Down

0 comments on commit 33ad044

Please sign in to comment.