From 1656e16c7c8fe5e0335da3dd00754aaef7349dc4 Mon Sep 17 00:00:00 2001 From: ecwu Date: Sat, 21 Dec 2024 12:10:49 +0800 Subject: [PATCH] Replace ChatBubbleAvatar with improved layout in Message component; update MessageHide component to use Badge for context indication --- src/message.tsx | 1 - src/messageHide.tsx | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/message.tsx b/src/message.tsx index 916ac66..7b62d81 100644 --- a/src/message.tsx +++ b/src/message.tsx @@ -124,7 +124,6 @@ export default function Message(props: Props) { variant={chat.role === "assistant" ? "received" : "sent"} className={chat.role !== "assistant" ? "flex-row-reverse" : ""} > - {chat.hide ? ( diff --git a/src/messageHide.tsx b/src/messageHide.tsx index f8bfd69..3f11728 100644 --- a/src/messageHide.tsx +++ b/src/messageHide.tsx @@ -1,5 +1,6 @@ import { ChatStoreMessage } from "@/types/chatstore"; import { getMessageText } from "@/chatgpt"; +import { Badge } from "./components/ui/badge"; interface Props { chat: ChatStoreMessage; @@ -9,9 +10,7 @@ export function MessageHide({ chat }: Props) { return (
{getMessageText(chat).split("\n")[0].slice(0, 18)} ... - - Removed from context - + Removed from context
); }