From a419aed40442ce2c806e436b46978a714fb984a5 Mon Sep 17 00:00:00 2001 From: icarus Date: Fri, 26 Sep 2025 01:42:31 +0800 Subject: [PATCH] refactor(animations): simplify motion animations in SessionsTab and Sessions components Remove redundant motion animations and streamline transition properties to improve code maintainability --- src/renderer/src/pages/home/Tabs/SessionsTab.tsx | 9 +-------- src/renderer/src/pages/home/Tabs/components/Sessions.tsx | 8 ++------ 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/src/renderer/src/pages/home/Tabs/SessionsTab.tsx b/src/renderer/src/pages/home/Tabs/SessionsTab.tsx index fd75efc1e3..4ba565b710 100644 --- a/src/renderer/src/pages/home/Tabs/SessionsTab.tsx +++ b/src/renderer/src/pages/home/Tabs/SessionsTab.tsx @@ -43,14 +43,7 @@ const SessionsTab: FC = () => { ) : ( - - - + )} ) diff --git a/src/renderer/src/pages/home/Tabs/components/Sessions.tsx b/src/renderer/src/pages/home/Tabs/components/Sessions.tsx index c8c30dcf5a..cf4f50e122 100644 --- a/src/renderer/src/pages/home/Tabs/components/Sessions.tsx +++ b/src/renderer/src/pages/home/Tabs/components/Sessions.tsx @@ -99,10 +99,7 @@ const Sessions: React.FC = ({ agentId }) => { animate={{ opacity: 1 }} transition={{ duration: 0.3 }} className="agents-tab h-full w-full p-2"> - +