From bfd28d277a809623dc6bac43bdfb44a1172c437d Mon Sep 17 00:00:00 2001 From: duckietm Date: Thu, 12 Mar 2026 16:21:23 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20Fix=20User=20Profile=20view?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/layout/LayoutAvatarImageView.tsx | 2 +- .../user-profile/FriendsContainerView.tsx | 4 +--- .../user-profile/UserContainerView.tsx | 16 +++++++++------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/common/layout/LayoutAvatarImageView.tsx b/src/common/layout/LayoutAvatarImageView.tsx index 26e3d55..69d3e20 100644 --- a/src/common/layout/LayoutAvatarImageView.tsx +++ b/src/common/layout/LayoutAvatarImageView.tsx @@ -22,7 +22,7 @@ export const LayoutAvatarImageView: FC = props => const getClassNames = useMemo(() => { - const newClassNames: string[] = [ 'avatar-image relative w-[90px] h-[130px] bg-no-repeat bg-position-[center_-8px] pointer-events-none' ]; + const newClassNames: string[] = [ 'avatar-image relative w-[90px] h-[130px] bg-no-repeat left-[-2px] pointer-events-none' ]; if(classNames.length) newClassNames.push(...classNames); diff --git a/src/components/user-profile/FriendsContainerView.tsx b/src/components/user-profile/FriendsContainerView.tsx index b92b82d..70f30bc 100644 --- a/src/components/user-profile/FriendsContainerView.tsx +++ b/src/components/user-profile/FriendsContainerView.tsx @@ -15,9 +15,7 @@ export const FriendsContainerView: FC = props => return (
-

- { LocalizeText('extendedprofile.friends.count') } { friendsCount } -

+

{ LocalizeText('extendedprofile.relstatus') }

diff --git a/src/components/user-profile/UserContainerView.tsx b/src/components/user-profile/UserContainerView.tsx index 20d0768..d6e3fb9 100644 --- a/src/components/user-profile/UserContainerView.tsx +++ b/src/components/user-profile/UserContainerView.tsx @@ -12,6 +12,10 @@ export const UserContainerView: FC<{ const isOwnProfile = (userProfile.id === GetSessionDataManager().userId); const canSendFriendRequest = !requestSent && (!isOwnProfile && !userProfile.isMyFriend && !userProfile.requestSent); + const infostandBackgroundClass = `background-${userProfile.backgroundId ?? 'default'}`; + const infostandStandClass = `stand-${userProfile.standId ?? 'default'}`; + const infostandOverlayClass = `overlay-${userProfile.overlayId ?? 'default'}`; + const addFriend = () => { setRequestSent(true); @@ -26,8 +30,10 @@ export const UserContainerView: FC<{ return (
-
+
+
+
@@ -35,12 +41,8 @@ export const UserContainerView: FC<{

{ userProfile.motto }

-

- { LocalizeText('extendedprofile.created') } { userProfile.registration } -

-

- { LocalizeText('extendedprofile.last.login') } { FriendlyTime.format(userProfile.secondsSinceLastVisit, '.ago', 2) } -

+

+

{ LocalizeText('extendedprofile.achievementscore') } { userProfile.achievementPoints }