feat: 合并代码后 系统设置 ui样式优化、bug修复、全局统一图标对齐等
This commit is contained in:
@@ -17,9 +17,15 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import {
|
||||
ZoomOut as ActionZoomOut,
|
||||
ZoomIn as ActionZoomIn,
|
||||
RotateCw as ActionRotateCw,
|
||||
Download as ActionDownload,
|
||||
X as ActionX,
|
||||
} from '@/components/common/icons/ActionIcons';
|
||||
import React, { useState, useCallback, useEffect } from 'react';
|
||||
import { Modal } from '@/components/ui';
|
||||
import { Download, ZoomIn, ZoomOut, X, RotateCw } from 'lucide-react';
|
||||
|
||||
const ImagePreviewModal = ({ visible, imageUrl, onClose }) => {
|
||||
const [scale, setScale] = useState(1);
|
||||
@@ -92,25 +98,51 @@ const ImagePreviewModal = ({ visible, imageUrl, onClose }) => {
|
||||
}}
|
||||
>
|
||||
<div className='flex items-center gap-1.5'>
|
||||
<button onClick={handleZoomOut} className={btnClass}>
|
||||
<ZoomOut size={18} />
|
||||
<button
|
||||
onClick={handleZoomOut}
|
||||
className={['app-action-button', btnClass]
|
||||
.filter(Boolean)
|
||||
.join(' ')}
|
||||
>
|
||||
<ActionZoomOut size={18} />
|
||||
</button>
|
||||
<span className='text-white/70 text-sm min-w-[48px] text-center'>
|
||||
{Math.round(scale * 100)}%
|
||||
</span>
|
||||
<button onClick={handleZoomIn} className={btnClass}>
|
||||
<ZoomIn size={18} />
|
||||
<button
|
||||
onClick={handleZoomIn}
|
||||
className={['app-action-button', btnClass]
|
||||
.filter(Boolean)
|
||||
.join(' ')}
|
||||
>
|
||||
<ActionZoomIn size={18} />
|
||||
</button>
|
||||
<button onClick={handleResetZoom} className={btnClass} title='Reset'>
|
||||
<RotateCw size={16} />
|
||||
<button
|
||||
onClick={handleResetZoom}
|
||||
className={['app-action-button', btnClass]
|
||||
.filter(Boolean)
|
||||
.join(' ')}
|
||||
title='Reset'
|
||||
>
|
||||
<ActionRotateCw size={16} />
|
||||
</button>
|
||||
</div>
|
||||
<div className='flex items-center gap-1.5'>
|
||||
<button onClick={handleDownload} className={btnClass}>
|
||||
<Download size={18} />
|
||||
<button
|
||||
onClick={handleDownload}
|
||||
className={['app-action-button', btnClass]
|
||||
.filter(Boolean)
|
||||
.join(' ')}
|
||||
>
|
||||
<ActionDownload size={18} />
|
||||
</button>
|
||||
<button onClick={handleClose} className={btnClass}>
|
||||
<X size={20} />
|
||||
<button
|
||||
onClick={handleClose}
|
||||
className={['app-action-button', btnClass]
|
||||
.filter(Boolean)
|
||||
.join(' ')}
|
||||
>
|
||||
<ActionX size={20} />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user