From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +0800
Subject: [PATCH] 修改
---
app/components/base/chat/chat/thought/tool.tsx | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/app/components/base/chat/chat/thought/tool.tsx b/app/components/base/chat/chat/thought/tool.tsx
index d0a3c52..7d6a1a0 100644
--- a/app/components/base/chat/chat/thought/tool.tsx
+++ b/app/components/base/chat/chat/thought/tool.tsx
@@ -30,7 +30,7 @@
typeof icon === 'string'
? (
<div
- className='h-3 w-3 shrink-0 rounded-[3px] bg-cover bg-center'
+ className='w-3 h-3 bg-cover bg-center rounded-[3px] shrink-0'
style={{
backgroundImage: `url(${icon})`,
}}
@@ -38,7 +38,7 @@
)
: (
<AppIcon
- className='shrink-0 rounded-[3px]'
+ className='rounded-[3px] shrink-0'
size='xs'
icon={icon?.content}
background={icon?.background}
@@ -58,35 +58,35 @@
const icon = getIcon(name, allToolIcons) as any
return (
<div>
- <div className={cn(!isShowDetail && 'shadow-sm', !isShowDetail && 'inline-block', 'max-w-full overflow-x-auto rounded-md bg-white')}>
+ <div className={cn(!isShowDetail && 'shadow-sm', !isShowDetail && 'inline-block', 'max-w-full overflow-x-auto bg-white rounded-md')}>
<div
- className={cn('flex h-7 cursor-pointer items-center px-2')}
+ className={cn('flex items-center h-7 px-2 cursor-pointer')}
onClick={() => setIsShowDetail(!isShowDetail)}
>
{!isFinished && (
- <RiLoader2Line className='h-3 w-3 shrink-0 animate-spin text-gray-500' />
+ <RiLoader2Line className='w-3 h-3 text-gray-500 animate-spin shrink-0' />
)}
{isFinished && !isShowDetail && (
- <CheckCircle className='h-3 w-3 shrink-0 text-[#12B76A]' />
+ <CheckCircle className='w-3 h-3 text-[#12B76A] shrink-0' />
)}
{isFinished && isShowDetail && (
icon
)}
- <span className='mx-1 shrink-0 text-xs font-medium text-gray-500'>
+ <span className='mx-1 text-xs font-medium text-gray-500 shrink-0'>
{t(`tools.thought.${isFinished ? 'used' : 'using'}`)}
</span>
<span
- className='truncate text-xs font-medium text-gray-700'
+ className='text-xs font-medium text-gray-700 truncate'
title={toolLabel}
>
{toolLabel}
</span>
<RiArrowDownSLine
- className={cn(isShowDetail && 'rotate-180', 'ml-1 h-3 w-3 shrink-0 cursor-pointer select-none text-gray-500')}
+ className={cn(isShowDetail && 'rotate-180', 'ml-1 w-3 h-3 text-gray-500 select-none cursor-pointer shrink-0')}
/>
</div>
{isShowDetail && (
- <div className='space-y-2 border-t border-black/5 p-2 '>
+ <div className='border-t border-black/5 p-2 space-y-2 '>
<Panel
isRequest={true}
toolName={toolName}
--
Gitblit v1.8.0