diff --git a/src/GZCTF/ClientApp/src/components/AppNavbar.tsx b/src/GZCTF/ClientApp/src/components/AppNavbar.tsx index 9e0a54836..37a597c8c 100644 --- a/src/GZCTF/ClientApp/src/components/AppNavbar.tsx +++ b/src/GZCTF/ClientApp/src/components/AppNavbar.tsx @@ -200,7 +200,9 @@ const AppNavbar: FC = () => { {user?.avatar ? ( - + + {user.userName?.slice(0, 1) ?? 'U'} + ) : ( )} diff --git a/src/GZCTF/ClientApp/src/components/TeamCard.tsx b/src/GZCTF/ClientApp/src/components/TeamCard.tsx index 905b18765..a3f279c21 100644 --- a/src/GZCTF/ClientApp/src/components/TeamCard.tsx +++ b/src/GZCTF/ClientApp/src/components/TeamCard.tsx @@ -96,7 +96,9 @@ const TeamCard: FC = (props) => { style={{ border: 'none', }} - /> + > + {captain?.userName?.slice(0, 1) ?? 'C'} + {members && members.slice(0, AVATAR_LIMIT).map((m) => ( @@ -108,7 +110,9 @@ const TeamCard: FC = (props) => { style={{ border: 'none', }} - /> + > + {m.userName?.slice(0, 1) ?? 'U'} + ))} {members && members.length > AVATAR_LIMIT && ( diff --git a/src/GZCTF/ClientApp/src/components/TeamEditModal.tsx b/src/GZCTF/ClientApp/src/components/TeamEditModal.tsx index 3dbf474e7..91f3e3750 100644 --- a/src/GZCTF/ClientApp/src/components/TeamEditModal.tsx +++ b/src/GZCTF/ClientApp/src/components/TeamEditModal.tsx @@ -53,7 +53,9 @@ const TeamMemberInfo: FC = (props) => { onMouseLeave={() => setShowBtns(false)} > - + + {user.userName?.slice(0, 1) ?? 'U'} + {user.userName} {isCaptain && showBtns && ( @@ -295,7 +297,9 @@ const TeamEditModal: FC = (props) => { size={70} src={teamInfo?.avatar} onClick={() => isCaptain && setDropzoneOpened(true)} - /> + > + {teamInfo?.name?.slice(0, 1) ?? 'T'} + @@ -355,7 +359,9 @@ const TeamEditModal: FC = (props) => { {captain && ( - + + {captain.userName?.slice(0, 1) ?? 'C'} + {captain.userName} diff --git a/src/GZCTF/ClientApp/src/components/admin/TeamEditModal.tsx b/src/GZCTF/ClientApp/src/components/admin/TeamEditModal.tsx index b3fe7e4dc..d08cca848 100644 --- a/src/GZCTF/ClientApp/src/components/admin/TeamEditModal.tsx +++ b/src/GZCTF/ClientApp/src/components/admin/TeamEditModal.tsx @@ -83,7 +83,9 @@ const TeamEditModal: FC = (props) => {
- + + {activeTeam.name?.slice(0, 1) ?? 'T'} +
@@ -108,7 +110,9 @@ const TeamEditModal: FC = (props) => { {activeTeam.members?.map((user) => ( - + + {user.userName?.slice(0, 1) ?? 'U'} + {user.userName} {`#${user.id?.substring(0, 8)}`} diff --git a/src/GZCTF/ClientApp/src/components/admin/UserEditModal.tsx b/src/GZCTF/ClientApp/src/components/admin/UserEditModal.tsx index e24e970f6..5bfb36f59 100644 --- a/src/GZCTF/ClientApp/src/components/admin/UserEditModal.tsx +++ b/src/GZCTF/ClientApp/src/components/admin/UserEditModal.tsx @@ -88,7 +88,9 @@ const UserEditModal: FC = (props) => {
- + + {activeUser.userName?.slice(0, 1) ?? 'U'} +
diff --git a/src/GZCTF/ClientApp/src/pages/account/Profile.tsx b/src/GZCTF/ClientApp/src/pages/account/Profile.tsx index 5472f7037..88dfddaa2 100644 --- a/src/GZCTF/ClientApp/src/pages/account/Profile.tsx +++ b/src/GZCTF/ClientApp/src/pages/account/Profile.tsx @@ -173,7 +173,9 @@ const Profile: FC = () => { size={80} src={user?.avatar} onClick={() => setDropzoneOpened(true)} - /> + > + {user?.userName?.slice(0, 1) ?? 'U'} +
diff --git a/src/GZCTF/ClientApp/src/pages/admin/Teams.tsx b/src/GZCTF/ClientApp/src/pages/admin/Teams.tsx index 0ace9a94c..357372e83 100644 --- a/src/GZCTF/ClientApp/src/pages/admin/Teams.tsx +++ b/src/GZCTF/ClientApp/src/pages/admin/Teams.tsx @@ -244,7 +244,9 @@ const Teams: FC = () => { withArrow classNames={tooltipClasses} > - + + {m.userName?.slice(0, 1) ?? 'U'} + ))} {members && members.length > 8 && ( diff --git a/src/GZCTF/ClientApp/src/pages/admin/Users.tsx b/src/GZCTF/ClientApp/src/pages/admin/Users.tsx index a451e829e..984981392 100644 --- a/src/GZCTF/ClientApp/src/pages/admin/Users.tsx +++ b/src/GZCTF/ClientApp/src/pages/admin/Users.tsx @@ -254,7 +254,9 @@ const Users: FC = () => { - + + {user.userName?.slice(0, 1) ?? 'U'} + = (props) => { return ( - + + {user.userName?.slice(0, 1) ?? 'U'} +