feat: 合并代码后 系统设置 ui样式优化、bug修复、全局统一图标对齐等
This commit is contained in:
@@ -17,6 +17,11 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import {
|
||||
X as ActionX,
|
||||
Settings2 as ActionSettings2,
|
||||
Check as ActionCheck,
|
||||
} from '@/components/common/icons/ActionIcons';
|
||||
import { useEffectEvent } from '../../../../hooks/common/useEffectEvent';
|
||||
import React, { useEffect, useState, useContext, useRef } from 'react';
|
||||
import {
|
||||
@@ -42,9 +47,6 @@ import {
|
||||
Key,
|
||||
CreditCard,
|
||||
Shield,
|
||||
X,
|
||||
Check,
|
||||
Settings2,
|
||||
Calendar,
|
||||
Hash,
|
||||
Layers,
|
||||
@@ -480,9 +482,9 @@ const EditTokenModal = (props) => {
|
||||
</div>
|
||||
<button
|
||||
onClick={handleCancel}
|
||||
className='p-1.5 rounded-lg text-gray-400 hover:text-gray-600 hover:bg-gray-100 dark:hover:bg-neutral-800 transition-colors'
|
||||
className='app-action-button p-1.5 rounded-lg text-gray-400 hover:text-gray-600 hover:bg-gray-100 dark:hover:bg-neutral-800 transition-colors'
|
||||
>
|
||||
<X size={18} />
|
||||
<ActionX size={18} />
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -640,10 +642,10 @@ const EditTokenModal = (props) => {
|
||||
<button
|
||||
type='button'
|
||||
onClick={() => setAdvancedOpen(!advancedOpen)}
|
||||
className='w-full flex items-center justify-between px-4 py-3 bg-white dark:bg-neutral-900 hover:bg-gray-50 dark:hover:bg-neutral-800 transition-colors'
|
||||
className='app-action-button w-full flex items-center justify-between px-4 py-3 bg-white dark:bg-neutral-900 hover:bg-gray-50 dark:hover:bg-neutral-800 transition-colors'
|
||||
>
|
||||
<div className='flex items-center gap-2'>
|
||||
<Settings2 size={15} className='text-brand' />
|
||||
<ActionSettings2 size={15} className='text-brand' />
|
||||
<span className='text-sm font-medium text-gray-700 dark:text-gray-300'>
|
||||
{t('高级设置')}
|
||||
</span>
|
||||
@@ -759,7 +761,7 @@ const EditTokenModal = (props) => {
|
||||
theme='solid'
|
||||
className='flex-1 !h-10 !rounded-xl !font-medium !border-0 !text-white !bg-gradient-to-r !from-brand-from !via-brand !to-brand-to shadow-lg shadow-brand/30 hover:!opacity-90'
|
||||
onClick={() => formApiRef.current?.submitForm()}
|
||||
icon={<Check size={16} />}
|
||||
icon={<ActionCheck size={16} />}
|
||||
loading={loading}
|
||||
>
|
||||
{isEdit ? t('保存修改') : t('创建密钥')}
|
||||
|
||||
Reference in New Issue
Block a user