Skip to content

Commit

Permalink
🐛 (editor) Fix share popover behind Test drawer
Browse files Browse the repository at this point in the history
Closes #1647
  • Loading branch information
baptisteArno committed Jul 22, 2024
1 parent 929863f commit 71d09cd
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions apps/builder/src/features/share/components/ShareTypebotButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
PopoverContent,
Button,
chakra,
Portal,
} from '@chakra-ui/react'
import { UsersIcon } from '@/components/icons'
import React from 'react'
Expand All @@ -28,13 +29,15 @@ export const ShareTypebotButton = ({ isLoading }: { isLoading: boolean }) => {
</chakra.span>
</Button>
</PopoverTrigger>
<PopoverContent
shadow="lg"
width="430px"
rootProps={{ style: { transform: 'scale(0)' } }}
>
<SharePopoverContent />
</PopoverContent>
<Portal>
<PopoverContent
shadow="lg"
width="430px"
rootProps={{ style: { transform: 'scale(0)' } }}
>
<SharePopoverContent />
</PopoverContent>
</Portal>
</Popover>
)
}

0 comments on commit 71d09cd

Please sign in to comment.