From a307fd4893be9552a8e22d2248074dabc089c2bf Mon Sep 17 00:00:00 2001 From: weishu Date: Wed, 17 Dec 2025 08:39:29 +0800 Subject: [PATCH] refactor: remove border styling and improve component styling --- web/src/components/ChatBlockList.tsx | 6 ++-- web/src/components/ChatInput.tsx | 4 +-- web/src/components/SessionChat.tsx | 6 ++-- web/src/components/SessionHeader.tsx | 4 +-- web/src/components/ToolCard/ToolCard.tsx | 45 +++++++++++++----------- web/src/components/ui/card.tsx | 3 +- 6 files changed, 35 insertions(+), 33 deletions(-) diff --git a/web/src/components/ChatBlockList.tsx b/web/src/components/ChatBlockList.tsx index 114b6e0c..35838f4e 100644 --- a/web/src/components/ChatBlockList.tsx +++ b/web/src/components/ChatBlockList.tsx @@ -89,7 +89,7 @@ export function ChatBlockList(props: {
{props.blocks.map((block) => { if (block.kind === 'user-text') { - const userBubbleClass = 'w-fit max-w-[92%] ml-auto rounded-xl border border-[var(--app-border)] bg-[var(--app-secondary-bg)] px-3 py-2 text-[var(--app-fg)] shadow-sm' + const userBubbleClass = 'w-fit max-w-[92%] ml-auto rounded-xl bg-[var(--app-secondary-bg)] px-3 py-2 text-[var(--app-fg)] shadow-sm' const status = block.status const onRetry = block.localId && status === 'failed' && props.onRetryMessage ? () => props.onRetryMessage!(block.localId!) @@ -147,7 +147,7 @@ export function ChatBlockList(props: { Task details ({block.children.length}) -
+
) : ( -
+
+