Skip to content

Commit

Permalink
fix: user list overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Sep 10, 2022
1 parent ce0ed9d commit 1a03601
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions GZCTF/ClientApp/src/pages/admin/Users.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,18 +240,24 @@ const Users: FC = () => {
/>
</td>
<td>
<Group position="apart">
<Group position="left">
<Group noWrap position="apart" spacing="xs">
<Group noWrap position="left">
<Avatar src={user.avatar} radius="xl" />
<Text weight={500}>{user.userName}</Text>
<Text weight={500} lineClamp={1}>
{user.userName}
</Text>
</Group>
<Badge size="sm" color={RoleColorMap.get(user.role ?? Role.User)}>
{user.role}
</Badge>
</Group>
</td>
<td>
<Text size="sm" style={{ fontFamily: theme.fontFamilyMonospace }}>
<Text
size="sm"
style={{ fontFamily: theme.fontFamilyMonospace }}
lineClamp={1}
>
{user.email}
</Text>
</td>
Expand Down

0 comments on commit 1a03601

Please sign in to comment.