Title & Big text Updates (#781)

This commit is contained in:
matt korwel 2025-06-05 18:14:02 -07:00 committed by GitHub
parent 8a0a2523ca
commit 2f51c22141
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 4 deletions

View File

@ -338,7 +338,7 @@ export const App = ({
key={staticKey}
items={[
<Box flexDirection="column" key="header">
<Header />
<Header title={process.env.GEMINI_CLI_TITLE} />
<Tips config={config} />
</Box>,
...history.map((h) => (

View File

@ -18,15 +18,19 @@ const asciiArtLogo = `
`;
export const Header: React.FC = () => (
interface HeaderProps {
title?: string;
}
export const Header: React.FC<HeaderProps> = ({ title = asciiArtLogo }) => (
<>
<Box marginBottom={1} alignItems="flex-start">
{Colors.GradientColors ? (
<Gradient colors={Colors.GradientColors}>
<Text>{asciiArtLogo}</Text>
<Text>{title}</Text>
</Gradient>
) : (
<Text>{asciiArtLogo}</Text>
<Text>{title}</Text>
)}
</Box>
</>