feat: 合并代码后 系统设置 ui样式优化、bug修复、全局统一图标对齐等
This commit is contained in:
@@ -16,18 +16,16 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import {
|
||||
Copy as ActionCopy,
|
||||
Search as ActionSearch,
|
||||
RotateCcw as ActionRotateCcw,
|
||||
RefreshCw as ActionRefreshCw,
|
||||
} from '@/components/common/icons/ActionIcons';
|
||||
import React, { useEffect, useMemo, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import i18next from 'i18next';
|
||||
import {
|
||||
Copy,
|
||||
Database,
|
||||
MessageSquareText,
|
||||
RefreshCw,
|
||||
RotateCcw,
|
||||
Search,
|
||||
SlidersHorizontal,
|
||||
} from 'lucide-react';
|
||||
import { Database, MessageSquareText, SlidersHorizontal } from 'lucide-react';
|
||||
import {
|
||||
Table,
|
||||
Button,
|
||||
@@ -351,10 +349,10 @@ const OrgPromptRecords = ({ orgId }) => {
|
||||
<button
|
||||
type='button'
|
||||
aria-label={t('复制提示词')}
|
||||
className='inline-flex h-7 w-7 flex-none items-center justify-center rounded-md text-gray-400 transition-colors hover:bg-brand/10 hover:text-brand focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand/40'
|
||||
className='app-action-button inline-flex h-7 w-7 flex-none items-center justify-center rounded-md text-gray-400 transition-colors hover:bg-brand/10 hover:text-brand focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand/40'
|
||||
onClick={(event) => handleCopyPrompt(event, text)}
|
||||
>
|
||||
<Copy size={14} />
|
||||
<ActionCopy size={14} />
|
||||
</button>
|
||||
</Tooltip>
|
||||
)}
|
||||
@@ -473,10 +471,10 @@ const OrgPromptRecords = ({ orgId }) => {
|
||||
{record.prompt && (
|
||||
<button
|
||||
type='button'
|
||||
className='inline-flex h-8 flex-none items-center gap-1.5 rounded-lg border border-[var(--border-subtle)] bg-[var(--surface-card)] px-2.5 text-xs font-medium text-gray-600 transition-colors hover:border-brand/30 hover:bg-brand/5 hover:text-brand focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand/40 dark:text-gray-300'
|
||||
className='app-action-button inline-flex h-8 flex-none items-center gap-1.5 rounded-lg border border-[var(--border-subtle)] bg-[var(--surface-card)] px-2.5 text-xs font-medium text-gray-600 transition-colors hover:border-brand/30 hover:bg-brand/5 hover:text-brand focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand/40 dark:text-gray-300'
|
||||
onClick={(event) => handleCopyPrompt(event, record.prompt)}
|
||||
>
|
||||
<Copy size={14} />
|
||||
<ActionCopy size={14} />
|
||||
{t('复制提示词')}
|
||||
</button>
|
||||
)}
|
||||
@@ -579,13 +577,13 @@ const OrgPromptRecords = ({ orgId }) => {
|
||||
<div className='flex flex-wrap gap-2 sm:col-span-2 xl:col-span-1 xl:flex-nowrap'>
|
||||
<Button
|
||||
type='primary'
|
||||
icon={<Search size={14} />}
|
||||
icon={<ActionSearch size={14} />}
|
||||
onClick={applyFilter}
|
||||
loading={loading || membersLoading}
|
||||
>
|
||||
{t('查询')}
|
||||
</Button>
|
||||
<Button icon={<RotateCcw size={14} />} onClick={resetFilters}>
|
||||
<Button icon={<ActionRotateCcw size={14} />} onClick={resetFilters}>
|
||||
{t('重置')}
|
||||
</Button>
|
||||
</div>
|
||||
@@ -603,7 +601,7 @@ const OrgPromptRecords = ({ orgId }) => {
|
||||
}
|
||||
actions={
|
||||
<Button
|
||||
icon={<RefreshCw size={14} />}
|
||||
icon={<ActionRefreshCw size={14} />}
|
||||
onClick={() => fetch(page, pageSize, appliedFilters)}
|
||||
loading={loading || membersLoading}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user