update wording and spacing
This commit is contained in:
parent
98fd9492be
commit
d0ee5a0ceb
6 changed files with 16 additions and 15 deletions
|
|
@ -251,7 +251,7 @@ const FileSearchUI: React.FC<FileSearchUIProps> = ({
|
|||
|
||||
<Box marginTop={1}>
|
||||
<Text color="gray" dimColor>
|
||||
Use ↑/↓ to navigate, Enter to select, Tab to complete
|
||||
↑/↓ to navigate, Enter to select, Tab to complete
|
||||
</Text>
|
||||
</Box>
|
||||
</Box>
|
||||
|
|
|
|||
|
|
@ -50,16 +50,18 @@ const IntroMessage: React.FC<IntroMessageProps> = ({
|
|||
<Text bold>Model:</Text> <Text color="white">{model.name.split("/").pop()}</Text>
|
||||
</Text>
|
||||
|
||||
<Text> </Text>
|
||||
|
||||
{/* Model capability warning */}
|
||||
{!modelCapable && (
|
||||
<>
|
||||
<ModelCapabilityWarning
|
||||
modelName={model.name.split("/").pop() || model.name}
|
||||
/>
|
||||
<Text> </Text>
|
||||
</>
|
||||
)}
|
||||
|
||||
<Text> </Text>
|
||||
|
||||
{/* MCP prompts */}
|
||||
{mcpPrompts.length > 0 && (
|
||||
|
|
@ -90,7 +92,7 @@ const IntroMessage: React.FC<IntroMessageProps> = ({
|
|||
{/* MCP Servers */}
|
||||
{config.mcpServers?.length && (
|
||||
<>
|
||||
<Text color="blue">MCP Servers:</Text>
|
||||
<Text bold color="blue">MCP Servers:</Text>
|
||||
{config.mcpServers.map((server: any, index: number) => (
|
||||
<Text key={index}>
|
||||
- <Text color="white">{server?.name}</Text>
|
||||
|
|
|
|||
|
|
@ -9,12 +9,10 @@ const ModelCapabilityWarning: React.FC<ModelCapabilityWarningProps> = ({
|
|||
modelName,
|
||||
}) => {
|
||||
return (
|
||||
<Box flexDirection="column" paddingX={1}>
|
||||
<Box flexDirection="column" paddingX={0}>
|
||||
<Box flexDirection="row" alignItems="center">
|
||||
<Text color="yellow">⚠️ </Text>
|
||||
<Text color="yellow" bold>
|
||||
Model Capability Warning
|
||||
</Text>
|
||||
<Text color="yellow">⚠️ </Text>
|
||||
<Text color="white">Model Capability Warning</Text>
|
||||
</Box>
|
||||
<Text color="gray">
|
||||
The model "{modelName}" is not recommended for use with cn due to
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ export function Selector<T extends SelectorOption>({
|
|||
</Box>
|
||||
<Box marginTop={1}>
|
||||
<Text color="gray" dimColor>
|
||||
Use ↑/↓ to navigate, Enter to select, Escape to cancel
|
||||
↑/↓ to navigate, Enter to select, Escape to cancel
|
||||
</Text>
|
||||
</Box>
|
||||
</Box>
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ const SlashCommandUI: React.FC<SlashCommandUIProps> = ({
|
|||
|
||||
<Box marginTop={1}>
|
||||
<Text color="gray" dimColor>
|
||||
Use ↑/↓ to navigate, Enter to select, Tab to complete
|
||||
↑/↓ to navigate, Enter to select, Tab to complete
|
||||
</Text>
|
||||
</Box>
|
||||
</Box>
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ export const MemoizedMessage = memo<MemoizedMessageProps>(
|
|||
switch (message.messageType) {
|
||||
case "tool-start":
|
||||
return (
|
||||
<Box key={index} marginBottom={1}>
|
||||
<Box key={index} marginLeft={1} marginBottom={1}>
|
||||
<Text color="white">○ {message.content}</Text>
|
||||
</Box>
|
||||
);
|
||||
|
|
@ -29,7 +29,7 @@ export const MemoizedMessage = memo<MemoizedMessageProps>(
|
|||
message.toolResult?.startsWith("Permission denied") ||
|
||||
message.toolResult?.startsWith("Error");
|
||||
return (
|
||||
<Box key={index} marginBottom={1} flexDirection="column">
|
||||
<Box key={index} marginLeft={1} marginBottom={1} flexDirection="column">
|
||||
<Box>
|
||||
<Text color={isFailure ? "red" : "green"}>●</Text>
|
||||
<Text> {message.content}</Text>
|
||||
|
|
@ -45,7 +45,7 @@ export const MemoizedMessage = memo<MemoizedMessageProps>(
|
|||
|
||||
case "tool-error":
|
||||
return (
|
||||
<Box key={index} marginBottom={1}>
|
||||
<Box key={index} marginLeft={1} marginBottom={1}>
|
||||
<Text color="red" bold>
|
||||
✗{" "}
|
||||
</Text>
|
||||
|
|
@ -55,7 +55,7 @@ export const MemoizedMessage = memo<MemoizedMessageProps>(
|
|||
|
||||
default:
|
||||
return (
|
||||
<Box key={index} marginBottom={1}>
|
||||
<Box key={index} marginLeft={1} marginBottom={1}>
|
||||
<Text color="gray" italic>
|
||||
{message.content}
|
||||
</Text>
|
||||
|
|
@ -69,6 +69,7 @@ export const MemoizedMessage = memo<MemoizedMessageProps>(
|
|||
return (
|
||||
<Box
|
||||
key={index}
|
||||
marginLeft={1}
|
||||
marginBottom={1}
|
||||
borderStyle="single"
|
||||
borderBottom={false}
|
||||
|
|
@ -80,7 +81,7 @@ export const MemoizedMessage = memo<MemoizedMessageProps>(
|
|||
}
|
||||
|
||||
return (
|
||||
<Box key={index} marginBottom={1}>
|
||||
<Box key={index} marginLeft={1} marginBottom={1}>
|
||||
<Text color={isUser ? "green" : "magenta"}>●</Text>
|
||||
<Text> </Text>
|
||||
{isUser ? (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue