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 (
|
return (
|
||||||
<Box key={index} marginBottom={1}>
|
<Box key={index} marginBottom={1}>
|
||||||
<Text color={isUser ? "green" : "blue"} bold>
|
<Text color={isUser ? "green" : "blue"} bold>
|
||||||
{isUser ? "You:" : "Assistant:"}
|
●
|
||||||
</Text>
|
</Text>
|
||||||
<Text> {message.content}</Text>
|
<Text> {message.content}</Text>
|
||||||
{message.isStreaming && <Text color="gray">▋</Text>}
|
{message.isStreaming && <Text color="gray">▋</Text>}
|
||||||
|
|
@ -207,10 +207,10 @@ const TUIChat: React.FC<TUIChatProps> = ({
|
||||||
{messages.map(renderMessage)}
|
{messages.map(renderMessage)}
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
{/* Input area */}
|
{/* Input area with rounded corners */}
|
||||||
<Box borderStyle="single" borderTop={true} paddingX={1}>
|
<Box borderStyle="round" borderTop={true} paddingX={1}>
|
||||||
<Text color="green" bold>
|
<Text color="green" bold>
|
||||||
You:{" "}
|
●{" "}
|
||||||
</Text>
|
</Text>
|
||||||
{(() => {
|
{(() => {
|
||||||
if (inputText.length === 0) {
|
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