🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
💄 style: fix chat session part switch theme issue (#8987)
Arvin Xub7111be40031
diff --git a/src/app/[variants]/(main)/chat/_layout/Desktop/SessionPanel.tsx b/src/app/[variants]/(main)/chat/_layout/Desktop/SessionPanel.tsxindex b4c20258a9b..468dc0d1348 100644--- a/src/app/[variants]/(main)/chat/_layout/Desktop/SessionPanel.tsx+++ b/src/app/[variants]/(main)/chat/_layout/Desktop/SessionPanel.tsx@@ -1,7 +1,7 @@'use client';import { DraggablePanel, DraggablePanelContainer, type DraggablePanelProps } from '@lobehub/ui';-import { createStyles, useResponsive } from 'antd-style';+import { createStyles, useResponsive, useThemeMode } from 'antd-style';import isEqual from 'fast-deep-equal';import { PropsWithChildren, memo, useEffect, useMemo, useState } from 'react';@@ -69,6 +69,8 @@ const SessionPanel = memo<PropsWithChildren>(({ children }) => {if (!md) updatePreference({ showSessionPanel: false });}, [md, cacheExpand]);+ const { appearance } = useThemeMode();+const SessionPanel = useMemo(() => {return (<DraggablePanel@@ -90,7 +92,7 @@ const SessionPanel = memo<PropsWithChildren>(({ children }) => {</DraggablePanelContainer></DraggablePanel>);- }, [sessionsWidth, md, isPinned, sessionExpandable, tmpWidth]);+ }, [sessionsWidth, md, isPinned, sessionExpandable, tmpWidth, appearance]);return SessionPanel;});