Skip to content

Commit

Permalink
fix: position of anonymous badge
Browse files Browse the repository at this point in the history
  • Loading branch information
janhvipatil committed Apr 8, 2024
1 parent 95094c6 commit 4b2d927
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,11 @@ const PollMessageBox = ({ data, messageID, onModalClose, onModalOpen }: { data:
min-w-64
w-full
rounded-md">
<Flex direction='column' gap='2' p='4' className="w-full">
<Flex justify='between' align='center' gap='2'>
<Text size='2' weight={'medium'}>{data.poll.question}</Text>
<Flex direction='column' gap='3' p='4' className="w-full">
<Flex direction='column' gap='2'>
<Text size='2' weight={'medium'}>
{data.poll.question}
</Text>
{data.poll.is_anonymous ? <Badge color='blue' className={'w-fit'}>Anonymous</Badge> : null}
</Flex>
{data.current_user_votes.length > 0 ?
Expand Down

0 comments on commit 4b2d927

Please sign in to comment.