🤯 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
🐛 fix: fixed when windows withd low the protal will resize (#11738)
Shinji-Li96f7862e3c61
diff --git a/src/app/[variants]/(main)/agent/features/Portal/features/Portal.tsx b/src/app/[variants]/(main)/agent/features/Portal/features/Portal.tsxindex b38852e6733..47a8bb36d86 100644--- a/src/app/[variants]/(main)/agent/features/Portal/features/Portal.tsx+++ b/src/app/[variants]/(main)/agent/features/Portal/features/Portal.tsx@@ -1,7 +1,7 @@'use client';import { DraggablePanel, type DraggablePanelProps } from '@lobehub/ui';-import { createStaticStyles } from 'antd-style';+import { createStaticStyles, useResponsive } from 'antd-style';import isEqual from 'fast-deep-equal';import { Activity, type PropsWithChildren, memo, useState } from 'react';@@ -52,6 +52,8 @@ const PortalPanel = memo(({ children }: PropsWithChildren) => {const [tmpWidth, setWidth] = useState(portalWidth);if (tmpWidth !== portalWidth) setWidth(portalWidth);+ const { lg } = useResponsive();+const handleSizeChange: DraggablePanelProps['onSizeChange'] = (_, size) => {if (!size) return;const nextWidth = typeof size.width === 'string' ? Number.parseInt(size.width) : size.width;@@ -75,6 +77,7 @@ const PortalPanel = memo(({ children }: PropsWithChildren) => {minWidth={showArtifactUI || showToolUI || showThread ? CHAT_PORTAL_TOOL_UI_WIDTH : CHAT_PORTAL_WIDTH}+ mode={lg ? 'fixed' : 'float'}onSizeChange={handleSizeChange}placement={'right'}showHandleWhenCollapsed={false}