feat: 合并代码后 系统设置 ui样式优化、bug修复、全局统一图标对齐等
This commit is contained in:
@@ -17,9 +17,13 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import {
|
||||
Copy as ActionCopy,
|
||||
ChevronUp as ActionChevronUp,
|
||||
ChevronDown as ActionChevronDown,
|
||||
} from '@/components/common/icons/ActionIcons';
|
||||
import React, { useState, useMemo, useCallback } from 'react';
|
||||
import { Button, Tooltip, Toast } from '@/components/ui';
|
||||
import { Copy, ChevronDown, ChevronUp } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { copy } from '../../helpers';
|
||||
|
||||
@@ -256,7 +260,7 @@ const CodeViewer = ({ content, title, language = 'json' }) => {
|
||||
>
|
||||
<Tooltip content={copied ? t('已复制') : t('复制代码')}>
|
||||
<Button
|
||||
icon={<Copy size={14} />}
|
||||
icon={<ActionCopy size={14} />}
|
||||
onClick={handleCopy}
|
||||
size='small'
|
||||
theme='borderless'
|
||||
@@ -319,7 +323,11 @@ const CodeViewer = ({ content, title, language = 'json' }) => {
|
||||
<Tooltip content={isExpanded ? t('收起内容') : t('显示完整内容')}>
|
||||
<Button
|
||||
icon={
|
||||
isExpanded ? <ChevronUp size={14} /> : <ChevronDown size={14} />
|
||||
isExpanded ? (
|
||||
<ActionChevronUp size={14} />
|
||||
) : (
|
||||
<ActionChevronDown size={14} />
|
||||
)
|
||||
}
|
||||
onClick={handleToggleExpand}
|
||||
size='small'
|
||||
|
||||
Reference in New Issue
Block a user