diff options
| author | Olcan <[email protected]> | 2025-04-21 14:43:43 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-21 14:43:43 -0700 |
| commit | 319f211211432409abba06caf55e40ef200eab85 (patch) | |
| tree | 0e9693b890930434ea69785eecdfd461be67a6e4 /packages/cli/src/ui/components/Footer.tsx | |
| parent | 7663ccf0bdd31f4da920d8148d5286b6b535b501 (diff) | |
improved (full color) sandbox, mount /tmp to display build warnings, display sandbox name in footer (#96)
Diffstat (limited to 'packages/cli/src/ui/components/Footer.tsx')
| -rw-r--r-- | packages/cli/src/ui/components/Footer.tsx | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/packages/cli/src/ui/components/Footer.tsx b/packages/cli/src/ui/components/Footer.tsx index 35ed6910..6b8a0fec 100644 --- a/packages/cli/src/ui/components/Footer.tsx +++ b/packages/cli/src/ui/components/Footer.tsx @@ -19,8 +19,14 @@ export const Footer: React.FC<FooterProps> = ({ debugMode, debugMessage, }) => ( - <Box marginTop={1} justifyContent="space-between"> - <Box minWidth={15}> + <Box + marginTop={1} + display="flex" + justifyContent="space-between" + width="100%" + > + {/* Left Section: Help/DebugMode */} + <Box> <Text color={Colors.SubtleComment}> {queryLength === 0 ? '? for shortcuts' : ''} {debugMode && ( @@ -28,6 +34,24 @@ export const Footer: React.FC<FooterProps> = ({ )} </Text> </Box> - <Text color={Colors.AccentBlue}>Gemini</Text> + + {/* Middle Section: Centered Sandbox Info */} + <Box + flexGrow={1} + alignItems="center" + justifyContent="center" + display="flex" + > + {process.env.SANDBOX ? ( + <Text color="green"> {process.env.SANDBOX} </Text> + ) : ( + <Text color="red"> WARNING: OUTSIDE SANDBOX </Text> + )} + </Box> + + {/* Right Section: Gemini Label */} + <Box> + <Text color={Colors.AccentBlue}>Gemini</Text> + </Box> </Box> ); |
