style: update profile image object positioning and fix checkbox alignment in filter modal
This commit is contained in:
@@ -76,7 +76,7 @@ function ProfileImage({ src, alt, className }: { src: string | null; alt: string
|
||||
ref={(el) => { if (el?.complete) setStatus(el.naturalWidth > 0 ? 'loaded' : 'error'); }}
|
||||
src={src}
|
||||
alt={alt}
|
||||
className={`w-full h-full object-cover transition-opacity duration-300 ${status === 'loaded' ? 'opacity-100' : 'opacity-0'}`}
|
||||
className={`w-full h-full object-cover object-top transition-opacity duration-300 ${status === 'loaded' ? 'opacity-100' : 'opacity-0'}`}
|
||||
onLoad={() => setStatus('loaded')}
|
||||
onError={() => setStatus('error')}
|
||||
/>
|
||||
@@ -274,7 +274,7 @@ function ProfileCard({ profile, resolvedAvatarUrl }: ProfileCardProps) {
|
||||
<ProfileImage
|
||||
src={getProfileImageUrl()}
|
||||
alt={`${profile.firstName} ${profile.lastName}`}
|
||||
className="w-full sm:w-[200px] h-[200px] rounded-[15px]"
|
||||
className="w-full aspect-square sm:w-[200px] sm:h-[200px] sm:aspect-auto rounded-[15px]"
|
||||
/>
|
||||
<Link href={`/user/profile/${profile.id}`} className="mt-4">
|
||||
<button className="w-[113px] py-2.5 bg-[#e58625] hover:bg-[#d47720] text-[#00293d] font-fractul font-bold text-[14px] rounded-[15px] transition-colors text-center flex items-center justify-center">
|
||||
|
||||
Reference in New Issue
Block a user