feat: 合并代码后 系统设置 ui样式优化、bug修复、全局统一图标对齐等

This commit is contained in:
zhanjunhao
2026-11-10 17:27:36 +08:00
parent 43e7fbc20e
commit 6ea8a0f7c2
195 changed files with 3546 additions and 1984 deletions
+16 -17
View File
@@ -17,6 +17,12 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import {
EyeOff as ActionEyeOff,
Eye as ActionEye,
X as ActionX,
ArrowDown as ActionArrowDown,
} from '@/components/common/icons/ActionIcons';
import React, { useContext } from 'react';
import {
Card,
@@ -31,7 +37,6 @@ import {
import {
MessageSquare,
Eye,
EyeOff,
Sparkles,
Brain,
Code2,
@@ -44,8 +49,6 @@ import {
Layers,
Paintbrush,
Upload,
ArrowDown,
X,
ListChecks,
} from 'lucide-react';
import { useChatScroll } from '../../hooks/playground/useChatScroll';
@@ -597,7 +600,7 @@ const ChatArea = ({
type='button'
onClick={onEnterSelectionMode}
aria-label={t('多选导出')}
className='flex items-center gap-2 cursor-pointer px-4 py-2 rounded-xl bg-white/80 dark:bg-neutral-800/80 backdrop-blur-md border border-gray-200/60 dark:border-neutral-700/60 shadow-[0_2px_8px_rgba(0,0,0,0.04)] hover:shadow-[0_4px_16px_rgba(139,92,246,0.12)] hover:border-brand-from/80 dark:hover:border-brand-deep/60 transition-all duration-300'
className='app-action-button flex items-center gap-2 cursor-pointer px-4 py-2 rounded-xl bg-white/80 dark:bg-neutral-800/80 backdrop-blur-md border border-gray-200/60 dark:border-neutral-700/60 shadow-[0_2px_8px_rgba(0,0,0,0.04)] hover:shadow-[0_4px_16px_rgba(139,92,246,0.12)] hover:border-brand-from/80 dark:hover:border-brand-deep/60 transition-all duration-300'
>
<ListChecks size={14} className='text-brand flex-shrink-0' />
<span className='text-sm font-medium text-gray-700 dark:text-gray-200'>
@@ -626,7 +629,11 @@ const ChatArea = ({
<div className='flex items-center gap-2'>
<Button
icon={
showDebugPanel ? <EyeOff size={14} /> : <Eye size={14} />
showDebugPanel ? (
<ActionEyeOff size={14} />
) : (
<ActionEye size={14} />
)
}
onClick={onToggleDebugPanel}
theme='borderless'
@@ -935,10 +942,10 @@ const ChatArea = ({
<button
type='button'
onClick={() => setLongConvHintDismissed(true)}
className='flex-shrink-0 text-amber-500 hover:text-amber-700 dark:hover:text-amber-300'
className='app-action-button flex-shrink-0 text-amber-500 hover:text-amber-700 dark:hover:text-amber-300'
aria-label={t('关闭提示')}
>
<X size={14} />
<ActionX size={14} />
</button>
</div>
)}
@@ -982,18 +989,10 @@ const ChatArea = ({
type='button'
onClick={() => scrollToBottom()}
style={{ bottom: 'calc(var(--composer-height, 90px) + 14px)' }}
className='
absolute z-30 left-1/2 -translate-x-1/2
flex items-center gap-1.5 px-3 py-1.5 rounded-full
bg-white/95 dark:bg-neutral-800/95 backdrop-blur-sm
border border-gray-200/80 dark:border-neutral-700/80
text-xs font-medium text-gray-700 dark:text-gray-200
shadow-md hover:shadow-lg hover:scale-105 active:scale-95
transition-all duration-200
'
className='app-action-button \n absolute z-30 left-1/2 -translate-x-1/2\n flex items-center gap-1.5 px-3 py-1.5 rounded-full\n bg-white/95 dark:bg-neutral-800/95 backdrop-blur-sm\n border border-gray-200/80 dark:border-neutral-700/80\n text-xs font-medium text-gray-700 dark:text-gray-200\n shadow-md hover:shadow-lg hover:scale-105 active:scale-95\n transition-all duration-200\n '
title={t('回到最新消息')}
>
<ArrowDown size={13} className='text-brand' />
<ActionArrowDown size={13} className='text-brand' />
{t('回到最新')}
</button>
)}