diff options
Diffstat (limited to 'packages/cli/src')
| -rw-r--r-- | packages/cli/src/ui/App.tsx | 9 | ||||
| -rw-r--r-- | packages/cli/src/ui/components/Footer.tsx | 26 |
2 files changed, 14 insertions, 21 deletions
diff --git a/packages/cli/src/ui/App.tsx b/packages/cli/src/ui/App.tsx index 758ddb28..e1ae8da3 100644 --- a/packages/cli/src/ui/App.tsx +++ b/packages/cli/src/ui/App.tsx @@ -290,13 +290,6 @@ export const App = ({ {shortenPath(config.getTargetDir(), 70)} </Text> </Box> - {geminiMdFileCount > 0 && ( - <Box> - <Text color={Colors.SubtleComment}> - Using {geminiMdFileCount} GEMINI.md files - </Text> - </Box> - )} </Box> <InputPrompt @@ -363,10 +356,10 @@ export const App = ({ <Footer config={config} - queryLength={query.length} debugMode={config.getDebugMode()} debugMessage={debugMessage} cliVersion={cliVersion} + geminiMdFileCount={geminiMdFileCount} /> <ConsoleOutput /> </Box> diff --git a/packages/cli/src/ui/components/Footer.tsx b/packages/cli/src/ui/components/Footer.tsx index 06721a4b..d3fe7a4a 100644 --- a/packages/cli/src/ui/components/Footer.tsx +++ b/packages/cli/src/ui/components/Footer.tsx @@ -11,31 +11,31 @@ import { Config } from '@gemini-code/server'; interface FooterProps { config: Config; - queryLength: number; debugMode: boolean; debugMessage: string; cliVersion: string; + geminiMdFileCount: number; } export const Footer: React.FC<FooterProps> = ({ config, - queryLength, debugMode, debugMessage, cliVersion, + geminiMdFileCount, }) => ( - <Box marginTop={1} display="flex" justifyContent="space-between" width="100%"> - {/* Left Section: Help/DebugMode */} + <Box> <Box> - <Text color={Colors.SubtleComment}> - {queryLength === 0 ? '? for shortcuts' : ''} - {debugMode && ( - <Text color={Colors.AccentRed}> - {' '} - {debugMessage || 'Running in debug mode.'} - </Text> - )} - </Text> + {geminiMdFileCount > 0 && ( + <Text color={Colors.SubtleComment}> + Using {geminiMdFileCount} GEMINI.md files + </Text> + )} + {debugMode && ( + <Text color={Colors.AccentRed}> + {debugMessage || ' | Running in debug mode.'} + </Text> + )} </Box> {/* Middle Section: Centered Sandbox Info */} |
