feat: 合并代码后 系统设置 ui样式优化、bug修复、全局统一图标对齐等
This commit is contained in:
@@ -17,9 +17,14 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import {
|
||||
ExternalLink as ActionExternalLink,
|
||||
Download as ActionDownload,
|
||||
X as ActionX,
|
||||
} from '@/components/common/icons/ActionIcons';
|
||||
import React, { useCallback, useMemo } from 'react';
|
||||
import { Modal, Toast } from '@/components/ui';
|
||||
import { Download, ExternalLink, X, FileText } from 'lucide-react';
|
||||
import { FileText } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
// 体验中心消息气泡里"点击附件 chip 弹出预览"的统一入口。
|
||||
@@ -110,20 +115,30 @@ const FilePreviewModal = ({ visible, file, onClose }) => {
|
||||
</span>
|
||||
</div>
|
||||
<div className='flex items-center gap-1.5'>
|
||||
<button onClick={handleOpenInNewTab} className={btnClass}>
|
||||
<ExternalLink size={14} />
|
||||
<button
|
||||
onClick={handleOpenInNewTab}
|
||||
className={['app-action-button', btnClass]
|
||||
.filter(Boolean)
|
||||
.join(' ')}
|
||||
>
|
||||
<ActionExternalLink size={14} />
|
||||
{t('新窗口打开')}
|
||||
</button>
|
||||
<button onClick={handleDownload} className={btnClass}>
|
||||
<Download size={14} />
|
||||
<button
|
||||
onClick={handleDownload}
|
||||
className={['app-action-button', btnClass]
|
||||
.filter(Boolean)
|
||||
.join(' ')}
|
||||
>
|
||||
<ActionDownload size={14} />
|
||||
{t('下载')}
|
||||
</button>
|
||||
<button
|
||||
onClick={onClose}
|
||||
className='w-9 h-9 flex items-center justify-center rounded-lg bg-white/10 hover:bg-white/20 text-white/80 hover:text-white transition-all'
|
||||
className='app-action-button w-9 h-9 flex items-center justify-center rounded-lg bg-white/10 hover:bg-white/20 text-white/80 hover:text-white transition-all'
|
||||
title={t('关闭')}
|
||||
>
|
||||
<X size={20} />
|
||||
<ActionX size={20} />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -156,12 +171,22 @@ const FilePreviewModal = ({ visible, file, onClose }) => {
|
||||
)}
|
||||
</div>
|
||||
<div className='flex items-center gap-2 mt-2'>
|
||||
<button onClick={handleOpenInNewTab} className={btnClass}>
|
||||
<ExternalLink size={14} />
|
||||
<button
|
||||
onClick={handleOpenInNewTab}
|
||||
className={['app-action-button', btnClass]
|
||||
.filter(Boolean)
|
||||
.join(' ')}
|
||||
>
|
||||
<ActionExternalLink size={14} />
|
||||
{t('新窗口打开')}
|
||||
</button>
|
||||
<button onClick={handleDownload} className={btnClass}>
|
||||
<Download size={14} />
|
||||
<button
|
||||
onClick={handleDownload}
|
||||
className={['app-action-button', btnClass]
|
||||
.filter(Boolean)
|
||||
.join(' ')}
|
||||
>
|
||||
<ActionDownload size={14} />
|
||||
{t('下载')}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user