File tree Expand file tree Collapse file tree 2 files changed +42
-27
lines changed
Expand file tree Collapse file tree 2 files changed +42
-27
lines changed Original file line number Diff line number Diff line change @@ -629,32 +629,47 @@ export const App = ({
629629 backgroundColor : theme . panelBg ,
630630 } }
631631 >
632- { ( hasStatus || queuedMessages . length > 0 ) && (
633- < >
634- < text wrap = { false } style = { { width : '100%' } } >
635- < StatusIndicator
636- isProcessing = { isWaitingForResponse }
637- theme = { theme }
638- clipboardMessage = { clipboardMessage }
639- />
640- { hasStatus && queuedMessages . length > 0 && ' ' }
641- { queuedMessages . length > 0 && (
642- < span fg = { theme . statusSecondary } bg = { theme . inputFocusedBg } >
643- { ' ' }
644- { formatQueuedPreview (
645- queuedMessages ,
646- Math . max ( 30 , renderer . width - 25 ) ,
647- ) } { ' ' }
648- </ span >
649- ) }
650- </ text >
651- </ >
652- ) }
653- < AgentModeToggle
654- mode = { agentMode }
655- theme = { theme }
656- onToggle = { toggleAgentMode }
657- />
632+ < box
633+ style = { {
634+ flexDirection : 'row' ,
635+ alignItems : 'center' ,
636+ justifyContent : 'space-between' ,
637+ width : '100%' ,
638+ } }
639+ >
640+ < box
641+ style = { {
642+ flexGrow : 1 ,
643+ flexDirection : 'row' ,
644+ alignItems : 'center' ,
645+ } }
646+ >
647+ { ( hasStatus || queuedMessages . length > 0 ) && (
648+ < text wrap = { false } >
649+ < StatusIndicator
650+ isProcessing = { isWaitingForResponse }
651+ theme = { theme }
652+ clipboardMessage = { clipboardMessage }
653+ />
654+ { hasStatus && queuedMessages . length > 0 && ' ' }
655+ { queuedMessages . length > 0 && (
656+ < span fg = { theme . statusSecondary } bg = { theme . inputFocusedBg } >
657+ { ' ' }
658+ { formatQueuedPreview (
659+ queuedMessages ,
660+ Math . max ( 30 , renderer . width - 25 ) ,
661+ ) } { ' ' }
662+ </ span >
663+ ) }
664+ </ text >
665+ ) }
666+ </ box >
667+ < AgentModeToggle
668+ mode = { agentMode }
669+ theme = { theme }
670+ onToggle = { toggleAgentMode }
671+ />
672+ </ box >
658673 < Separator theme = { theme } width = { renderer . width } />
659674 { slashContext . active && slashSuggestionItems . length > 0 ? (
660675 < SuggestionMenu
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export const AgentModeToggle = ({
1919 < box
2020 style = { {
2121 flexDirection : 'row' ,
22- alignSelf : 'flex-end ' ,
22+ alignItems : 'center ' ,
2323 backgroundColor : bgColor ,
2424 paddingLeft : isFast ? 2 : 1 ,
2525 paddingRight : isFast ? 2 : 1 ,
You can’t perform that action at this time.
0 commit comments