From d54f0b92e693996a53aae2a65c58aae036a81aba Mon Sep 17 00:00:00 2001 From: Nelson Pires Date: Fri, 13 Feb 2026 00:32:20 -0300 Subject: [PATCH] feat: apply rounded corners to mobile session status bar (#412) --- packages/ui/src/components/chat/ChatInput.tsx | 2 +- .../chat/MobileSessionStatusBar.tsx | 28 ++++++++++++++++--- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/packages/ui/src/components/chat/ChatInput.tsx b/packages/ui/src/components/chat/ChatInput.tsx index d5456fef..ca3f08f4 100644 --- a/packages/ui/src/components/chat/ChatInput.tsx +++ b/packages/ui/src/components/chat/ChatInput.tsx @@ -2119,7 +2119,7 @@ export const ChatInput: React.FC = ({ onOpenSettings, scrollToBo {/* Mobile Session Status Bar - 在输入框上方 */} - {isMobile && } + {isMobile && } diff --git a/packages/ui/src/components/chat/MobileSessionStatusBar.tsx b/packages/ui/src/components/chat/MobileSessionStatusBar.tsx index e3c5959a..4cce16c7 100644 --- a/packages/ui/src/components/chat/MobileSessionStatusBar.tsx +++ b/packages/ui/src/components/chat/MobileSessionStatusBar.tsx @@ -9,6 +9,7 @@ import { RiLoader4Line } from '@remixicon/react'; interface MobileSessionStatusBarProps { onSessionSwitch?: (sessionId: string) => void; + cornerRadius?: number; } interface SessionWithStatus extends Session { @@ -302,16 +303,24 @@ function CollapsedView({ unreadCount, currentSessionTitle, onToggle, - onNewSession + onNewSession, + cornerRadius, }: { runningCount: number; unreadCount: number; currentSessionTitle: string; onToggle: () => void; onNewSession: () => void; + cornerRadius?: number; }) { return ( -
+
string; getSessionTitle: (s: Session) => string; needsAttention: (sessionId: string) => boolean; + cornerRadius?: number; }) { const containerRef = React.useRef(null); const [collapsedHeight, setCollapsedHeight] = React.useState(null); @@ -380,7 +391,13 @@ function ExpandedView({ const displaySessions = hasMeasured || isExpanded ? sessions : sessions.slice(0, 3); return ( -
+
= ({ onSessionSwitch, + cornerRadius, }) => { const sessions = useSessionStore((state) => state.sessions); const currentSessionId = useSessionStore((state) => state.currentSessionId); @@ -487,6 +505,7 @@ export const MobileSessionStatusBar: React.FC = ({ currentSessionTitle={currentSessionTitle} onToggle={() => setIsMobileSessionStatusBarCollapsed(false)} onNewSession={handleCreateSession} + cornerRadius={cornerRadius} /> ); } @@ -510,6 +529,7 @@ export const MobileSessionStatusBar: React.FC = ({ getSessionAgentName={getSessionAgentName} getSessionTitle={getSessionTitle} needsAttention={needsAttention} + cornerRadius={cornerRadius} /> ); };