2
0

🐛 Fix board menu placement when suspected typebot banner is displayed

This commit is contained in:
Baptiste Arnaud
2024-03-11 11:07:27 +01:00
parent bbeb12cad2
commit 4a7d10f578
3 changed files with 18 additions and 5 deletions

View File

@ -28,15 +28,15 @@ export const EditorPage = () => {
)
const bgColor = useColorModeValue('#f4f5f8', 'gray.850')
const isSuspicious = typebot?.riskLevel === 100 && !workspace?.isVerified
if (is404) return <TypebotNotFoundPage />
return (
<EditorProvider>
<Seo title={typebot?.name ? `${typebot.name} | Editor` : 'Editor'} />
<Flex overflow="clip" h="100vh" flexDir="column" id="editor-container">
<GettingStartedModal />
{typebot?.riskLevel === 100 && !workspace?.isVerified && (
<SuspectedTypebotBanner typebotId={typebot.id} />
)}
{isSuspicious && <SuspectedTypebotBanner typebotId={typebot.id} />}
<TypebotHeader />
<Flex
flex="1"
@ -57,7 +57,11 @@ export const EditorPage = () => {
>
<EventsCoordinatesProvider events={typebot.events}>
<Graph flex="1" typebot={typebot} key={typebot.id} />
<BoardMenuButton pos="absolute" right="40px" top="20px" />
<BoardMenuButton
pos="absolute"
right="40px"
top={`calc(20px + ${isSuspicious ? '70px' : '0'})`}
/>
<RightPanel />
</EventsCoordinatesProvider>
</GraphProvider>