Skip to content

Commit

Permalink
chore: update agent panel hidden style
Browse files Browse the repository at this point in the history
  • Loading branch information
Wangtaofeng committed Mar 5, 2024
1 parent 239dc74 commit efa5f2d
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions apps/builder/src/page/AI/AIAgentRun/AIAgentRunPC/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -631,13 +631,26 @@ export const AIAgentRunPC: FC = () => {
</Helmet>
<ChatContext.Provider value={{ inRoomUsers }}>
<div css={aiAgentContainerStyle}>
<AnimatePresence>
<AnimatePresence mode="wait" initial={false}>
{showEditPanel && (
<motion.div
css={leftPanelContainerStyle}
initial={{ opacity: 0, x: "-100%", position: "absolute" }}
animate={{ opacity: 1, x: 0, position: "relative" }}
exit={{ opacity: 0, x: "-100%", position: "absolute" }}
initial={{
opacity: 0,
x: "-100%",
position: "absolute",
}}
animate={{
opacity: 1,
x: 0,
position: "relative",
transition: { duration: 0.3 },
}}
exit={{
opacity: 0,
x: "-100%",
position: "absolute",
}}
>
<div css={agentTopContainerStyle}>
<div css={backMenuStyle}>
Expand Down

0 comments on commit efa5f2d

Please sign in to comment.