Skip to content

Commit

Permalink
fix: Fix misaligned text and icon on User Tag
Browse files Browse the repository at this point in the history
  • Loading branch information
LulaV14 committed Apr 25, 2022
1 parent 23e7259 commit a67233d
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions packages/frontend/src/components/user-tag/user-tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
Avatar,
Box,
Divider,
Flex,
Heading,
HStack,
Icon,
Expand Down Expand Up @@ -149,16 +150,12 @@ export const UserTag = ({ user, isLoading, permission, placement = 'right', ...t
}}
{...tagProps}
>
<HStack justifyContent="space-between" w="full">
<Box>
<HStack justifyContent="space-between" w="full" alignItems="center">
<Flex align="center">
<Avatar name={user.displayName} src={user?.avatarUrl} {...avatarProps} />
<TagLabel>{user.displayName}</TagLabel>
</Box>
{permission && (
<Box>
<Icon as={iconFactory('crown')} />
</Box>
)}
</Flex>
{permission && <Icon as={iconFactory('crown')} />}
</HStack>
</Tag>
</PopoverTrigger>
Expand Down

0 comments on commit a67233d

Please sign in to comment.