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

This commit is contained in:
zhanjunhao
2026-11-10 17:27:36 +08:00
parent 5463a0c772
commit ed9820e6a6
195 changed files with 3546 additions and 1984 deletions
@@ -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 {
Copy as ActionCopy,
CheckCircle as ActionCheckCircle,
Download as ActionDownload,
} from '@/components/common/icons/ActionIcons';
import React, { useState, useEffect, useRef, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
import { useNavigate } from 'react-router-dom';
@@ -31,8 +36,6 @@ import {
} from '@/components/ui';
import { QRCodeCanvas } from 'qrcode.react';
import {
Download,
Copy,
Share2,
Smartphone,
Monitor,
@@ -383,7 +386,7 @@ const PromotionPosterModal = ({ visible, onClose }) => {
theme='solid'
type='primary'
size='small'
icon={<Copy size={14} />}
icon={<ActionCopy size={14} />}
onClick={handleCopyLink}
className='!bg-gradient-to-r !from-brand-from !to-brand-to !border-0 !rounded-lg'
>
@@ -413,7 +416,7 @@ const PromotionPosterModal = ({ visible, onClose }) => {
<Button
theme='light'
type='tertiary'
icon={<Copy size={14} />}
icon={<ActionCopy size={14} />}
onClick={handleCopyCode}
className='!rounded-lg'
>
@@ -452,17 +455,22 @@ const PromotionPosterModal = ({ visible, onClose }) => {
<button
key={template.id}
onClick={() => setSelectedTemplate(template)}
className={`relative w-14 h-14 rounded-xl border-2 transition-all duration-300 overflow-hidden ${
selectedTemplate.id === template.id
? 'border-brand scale-110 shadow-lg shadow-brand/30'
: 'border-transparent hover:border-gray-300 hover:scale-105'
}`}
className={[
'app-action-button',
`relative w-14 h-14 rounded-xl border-2 transition-all duration-300 overflow-hidden ${
selectedTemplate.id === template.id
? 'border-brand scale-110 shadow-lg shadow-brand/30'
: 'border-transparent hover:border-gray-300 hover:scale-105'
}`,
]
.filter(Boolean)
.join(' ')}
style={{ background: template.bgGradient }}
title={t(template.name)}
>
{selectedTemplate.id === template.id && (
<div className='absolute inset-0 flex items-center justify-center bg-black/20'>
<CheckCircle size={20} className='text-white' />
<ActionCheckCircle size={20} className='text-white' />
</div>
)}
</button>
@@ -556,7 +564,7 @@ const PromotionPosterModal = ({ visible, onClose }) => {
<Button
theme='solid'
type='primary'
icon={<Download size={16} />}
icon={<ActionDownload size={16} />}
onClick={handleDownload}
loading={downloading}
className='flex-1 !bg-gradient-to-r !from-brand-from !to-brand-to !border-0 !rounded-xl !h-10'
@@ -566,7 +574,7 @@ const PromotionPosterModal = ({ visible, onClose }) => {
<Button
theme='light'
type='tertiary'
icon={<Copy size={16} />}
icon={<ActionCopy size={16} />}
onClick={handleCopyLink}
className='flex-1 !rounded-xl !h-10'
>