@@ -6,6 +6,7 @@ import { useNavigate, useParams } from 'react-router';
66import { toast } from 'sonner' ;
77import useInfiniteGuests from '../hooks/useInfiniteGuests' ;
88
9+ import UserAvatar from '@/components/UserAvatar' ;
910// shadcn UI ์ปดํฌ๋ํธ
1011import {
1112 AlertDialog ,
@@ -18,7 +19,6 @@ import {
1819 AlertDialogTitle ,
1920 AlertDialogTrigger ,
2021} from '@/components/ui/alert-dialog' ;
21- import { Avatar , AvatarFallback , AvatarImage } from '@/components/ui/avatar' ;
2222import { Button } from '@/components/ui/button' ;
2323import type { GuestStatus } from '@/types/schemas' ;
2424import { ChevronLeftIcon , Loader2 } from 'lucide-react' ;
@@ -118,24 +118,22 @@ export default function Guests() {
118118 page . participants . map ( ( guest ) => (
119119 < div
120120 key = { guest . registrationId }
121- className = "flex items-center justify-between w-full"
121+ className = "flex items-center justify-between w-full gap-2 sm:gap-4 "
122122 >
123- < div className = "flex items-center gap-4" >
124- < Avatar className = "w-16 h-16 border-none shadow-sm" >
125- < AvatarImage src = { guest . profileImage || undefined } />
126- < AvatarFallback className = "bg-black text-white text-xs" >
127- { guest . name ?. slice ( 0 , 2 ) }
128- </ AvatarFallback >
129- </ Avatar >
130- < div className = "flex flex-col" >
131- < span className = "text-xl font-bold text-black" >
123+ < div className = "flex items-center gap-3 sm:gap-4 min-w-0 flex-1" >
124+ < UserAvatar name = { guest . name } imageUrl = { guest . profileImage } />
125+
126+ < div className = "flex flex-col min-w-0 flex-1" >
127+ < span className = "text-lg sm:text-xl font-bold text-black truncate" >
132128 { guest . name }
133129 </ span >
134130 { guest . email ? (
135- < span className = "text-gray-400 text-lg" > { guest . email } </ span >
131+ < span className = "text-sm sm:text-lg text-gray-400 truncate" >
132+ { guest . email }
133+ </ span >
136134 ) : null }
137135 { guest . status === 'WAITLISTED' && (
138- < span className = "text-blue-400 text-lg font-semibold" >
136+ < span className = "text-sm sm: text-lg text-blue-400 font-semibold truncate " >
139137 ๋๊ธฐ { guest . waitingNum } ๋ฒ
140138 </ span >
141139 ) }
@@ -148,7 +146,7 @@ export default function Guests() {
148146 < AlertDialogTrigger asChild >
149147 < Button
150148 variant = "secondary"
151- className = "bg-[#333333] hover:bg-black text-white rounded-lg px-4 py-6 text-base font-bold"
149+ className = "bg-[#333333] hover:bg-black text-white rounded-lg px-3 py-2 sm:px-4 sm: py-3 h-auto text-sm sm:text- base font-bold shrink-0 "
152150 >
153151 ๊ฐ์ ์ทจ์
154152 </ Button >
0 commit comments