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(agent): enable drag-to-collapse right panels (#17515)

Innei7ce730fec4de
diff --git a/package.json b/package.json
index 8b8ae337d6e..233326407d3 100644
--- a/package.json
+++ b/package.json
@@ -299,7 +299,7 @@
"@lobehub/icons": "^5.11.0",
"@lobehub/market-sdk": "0.39.2",
"@lobehub/tts": "^5.1.2",
- "@lobehub/ui": "^5.23.0",
+ "@lobehub/ui": "^5.23.3",
"@modelcontextprotocol/sdk": "^1.29.0",
"@napi-rs/canvas": "^0.1.100",
"@neondatabase/serverless": "^1.1.0",
diff --git a/src/features/AgentBuilder/index.tsx b/src/features/AgentBuilder/index.tsx
index 90c9ee8f3eb..c0f8a699391 100644
--- a/src/features/AgentBuilder/index.tsx
+++ b/src/features/AgentBuilder/index.tsx
@@ -29,6 +29,7 @@ const AgentBuilder = memo(() => {
return (
<RightPanel
stableLayout
+ collapseThreshold={320}
defaultWidth={width}
expand={showAgentBuilderPanel}
onExpandChange={toggleAgentBuilderPanel}
diff --git a/src/routes/(main)/agent/features/Conversation/WorkingSidebar/index.tsx b/src/routes/(main)/agent/features/Conversation/WorkingSidebar/index.tsx
index d5713490243..90cf9e1f032 100644
--- a/src/routes/(main)/agent/features/Conversation/WorkingSidebar/index.tsx
+++ b/src/routes/(main)/agent/features/Conversation/WorkingSidebar/index.tsx
@@ -723,6 +723,7 @@ const AgentWorkingSidebar = memo(() => {
return (
<RightPanel
stableLayout
+ collapseThreshold={320}
defaultWidth={displayWidth}
maxWidth={MAX_PANEL_WIDTH}
minWidth={300}