fix(editor): 💄 Variable button tiny dropdown
This commit is contained in:
@@ -20,7 +20,7 @@ type Props = {
|
|||||||
|
|
||||||
export const VariablesButton = ({ onSelectVariable, ...props }: Props) => {
|
export const VariablesButton = ({ onSelectVariable, ...props }: Props) => {
|
||||||
return (
|
return (
|
||||||
<Popover matchWidth isLazy>
|
<Popover isLazy placement="bottom-end">
|
||||||
<PopoverTrigger>
|
<PopoverTrigger>
|
||||||
<Flex>
|
<Flex>
|
||||||
<Tooltip label="Insert a variable">
|
<Tooltip label="Insert a variable">
|
||||||
|
|||||||
@@ -105,7 +105,6 @@ export const WorkspaceContext = ({ children }: { children: ReactNode }) => {
|
|||||||
mutate({
|
mutate({
|
||||||
workspaces: [...workspaces, newWorkspace],
|
workspaces: [...workspaces, newWorkspace],
|
||||||
})
|
})
|
||||||
console.log(newWorkspace)
|
|
||||||
setCurrentWorkspace(newWorkspace)
|
setCurrentWorkspace(newWorkspace)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -73,8 +73,8 @@ export const ChatBlock = ({
|
|||||||
: setDisplayedChunks([...displayedChunks, { bubbles: [nextStep] }])
|
: setDisplayedChunks([...displayedChunks, { bubbles: [nextStep] }])
|
||||||
}
|
}
|
||||||
if (isInputStep(nextStep)) {
|
if (isInputStep(nextStep)) {
|
||||||
return displayedChunks.length === 0 ||
|
displayedChunks.length === 0 ||
|
||||||
isDefined(displayedChunks[displayedChunks.length - 1].input)
|
isDefined(displayedChunks[displayedChunks.length - 1].input)
|
||||||
? setDisplayedChunks([
|
? setDisplayedChunks([
|
||||||
...displayedChunks,
|
...displayedChunks,
|
||||||
{ bubbles: [], input: nextStep },
|
{ bubbles: [], input: nextStep },
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ export const TypebotContext = ({
|
|||||||
|
|
||||||
const popEdgeIdFromLinkedTypebotQueue = () => {
|
const popEdgeIdFromLinkedTypebotQueue = () => {
|
||||||
setLinkedBotQueue((queue) => queue.slice(1))
|
setLinkedBotQueue((queue) => queue.slice(1))
|
||||||
const typebot = setCurrentTypebotId(linkedBotQueue[0].typebotId)
|
setCurrentTypebotId(linkedBotQueue[0].typebotId)
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user