Skip to content

🤯 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.

🐛 fix(ui): keep the two panels that lived on DraggablePanel's default background (#19413)

Innei41e604d624c3
diff --git a/src/features/Acceptance/Viewer/History/AcceptanceLedgerRail.tsx b/src/features/Acceptance/Viewer/History/AcceptanceLedgerRail.tsx
index f72e163f0f9..004e5ab87b6 100644
--- a/src/features/Acceptance/Viewer/History/AcceptanceLedgerRail.tsx
+++ b/src/features/Acceptance/Viewer/History/AcceptanceLedgerRail.tsx
@@ -158,6 +158,7 @@ const AcceptanceLedgerRail = () => {
</AcceptanceDrawer>
) : (
<DraggablePanel
+ backgroundColor={cssVar.colorBgLayout}
defaultSize={{ width: 340 }}
expand={expand}
minWidth={300}
diff --git a/src/features/HeteroSessionImport/SidebarTree.tsx b/src/features/HeteroSessionImport/SidebarTree.tsx
index a98eb6bb074..f3bbcbf26c9 100644
--- a/src/features/HeteroSessionImport/SidebarTree.tsx
+++ b/src/features/HeteroSessionImport/SidebarTree.tsx
@@ -2,7 +2,7 @@ import type { HeteroSessionDirGroup, HeteroSessionDirPref } from '@lobechat/type
import { ClaudeCode, Codex } from '@lobehub/icons';
import { Flexbox, Icon, ScrollShadow, Tooltip } from '@lobehub/ui';
import { ActionIcon, DraggablePanel, Text } from '@lobehub/ui/base-ui';
-import { createStaticStyles, cx } from 'antd-style';
+import { createStaticStyles, cssVar, cx } from 'antd-style';
import { ChevronRight, Eye, EyeOff, Folder, FolderGit2, Timer, X } from 'lucide-react';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -134,6 +134,7 @@ const SidebarTree = memo<SidebarTreeProps>(({ groups, scope, onScopeChange, onSe
return (
<DraggablePanel
+ backgroundColor={cssVar.colorBgLayout}
defaultSize={{ width: 232 }}
expandable={false}
maxWidth={420}