Skip to content

Commit

Permalink
Fix: 프로필 사진 디자인 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JitHoon committed Nov 17, 2023
1 parent 7120cc0 commit f4fa035
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions Components/Chat/Chats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,16 @@ const Chats = ({
</li>
) : (
<li key={message.id} className="flex m-2 place-self-start">
<Image
src={user.picture}
width={50}
height={50}
alt="User Picture"
onClick={useModal ? openProfile : undefined}
className="shadow-gray-100 shadow-md rounded-xl"
/>
<div className="relative w-[45px] h-[45px] overflow-hidden">
<Image
src={user.picture}
layout={'fill'}
objectFit={'cover'}
alt="User Picture"
onClick={useModal ? openProfile : undefined}
className="shadow-gray-100 shadow-md rounded-full"
/>
</div>
<div className="flex flex-col ml-2">
<p className="text-xs">{user.username}</p>
<p className="mt-1 px-5 py-2 text-sm text-white bg-pink-200 rounded-xl">
Expand Down

0 comments on commit f4fa035

Please sign in to comment.