From a312ecf7ef03ebff346160ae8c2abea251ed0c90 Mon Sep 17 00:00:00 2001 From: yiling Date: Mon, 6 Jul 2026 12:40:20 +0800 Subject: [PATCH] style(comments): use custom filled circle check icon and make actions row always visible --- .../webui/components/chat/message-card.tsx | 50 ++++++++++++++++--- 1 file changed, 43 insertions(+), 7 deletions(-) diff --git a/packages/webui/components/chat/message-card.tsx b/packages/webui/components/chat/message-card.tsx index 38cc9e35..3db7ea04 100644 --- a/packages/webui/components/chat/message-card.tsx +++ b/packages/webui/components/chat/message-card.tsx @@ -11,7 +11,7 @@ import { Separator } from '@/ui/components/ui/separator' import { formatTimeAgo } from '@/ui/lib/time' import type { AttachmentInfo, CommentInfo, UserInfo } from '@shumai/dtos' import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query' -import { Download, File, Terminal, CircleCheck } from 'lucide-react' +import { Download, File, Terminal } from 'lucide-react' import React from 'react' import Markdown from 'react-markdown' import { Avatar, AvatarFallback, AvatarImage } from '../ui/avatar' @@ -38,6 +38,42 @@ interface MessageCardProps { rootParentId?: string } +const UnfilledCircleCheck: React.FC> = (props) => ( + + + + +) + +const FilledCircleCheck: React.FC> = (props) => ( + + + + +) + /* eslint-disable @typescript-eslint/naming-convention */ const AI_PLACEHOLDERS: Record = { __CHAT__: 'Generating...', @@ -290,11 +326,7 @@ export const MessageCard: React.FC = ({ )} {/* Actions */} -
+