fix: round corners
This commit is contained in:
parent
423dbdd457
commit
a08e2176a7
1 changed files with 5 additions and 5 deletions
|
|
@ -192,7 +192,7 @@ const TUIChat: React.FC<TUIChatProps> = ({
|
|||
return (
|
||||
<Box key={index} marginBottom={1}>
|
||||
<Text color={isUser ? "green" : "blue"} bold>
|
||||
{isUser ? "You:" : "Assistant:"}
|
||||
●
|
||||
</Text>
|
||||
<Text> {message.content}</Text>
|
||||
{message.isStreaming && <Text color="gray">▋</Text>}
|
||||
|
|
@ -207,10 +207,10 @@ const TUIChat: React.FC<TUIChatProps> = ({
|
|||
{messages.map(renderMessage)}
|
||||
</Box>
|
||||
|
||||
{/* Input area */}
|
||||
<Box borderStyle="single" borderTop={true} paddingX={1}>
|
||||
{/* Input area with rounded corners */}
|
||||
<Box borderStyle="round" borderTop={true} paddingX={1}>
|
||||
<Text color="green" bold>
|
||||
You:{" "}
|
||||
●{" "}
|
||||
</Text>
|
||||
{(() => {
|
||||
if (inputText.length === 0) {
|
||||
|
|
@ -295,4 +295,4 @@ const TUIChat: React.FC<TUIChatProps> = ({
|
|||
);
|
||||
};
|
||||
|
||||
export default TUIChat;
|
||||
export default TUIChat;
|
||||
Loading…
Add table
Reference in a new issue