fix: 样式优化

This commit is contained in:
张德辉 2025-07-01 16:07:08 +08:00
parent c979c291e6
commit d1402e0542
3 changed files with 8 additions and 8 deletions

View File

@ -11,8 +11,8 @@ import ChangeBgPage from './pages/ChangeBgPage';
const menu = [
{ path: '/', label: '首页', icon: <Home className='mr-2' /> },
{ path: '/change-bg', label: '图片换背景', icon: <Image className='mr-2' /> },
{ path: '/tasks', label: '任务列表', icon: <List className='mr-2' /> },
{ path: '/video-tasks', label: '视频任务进度', icon: <Video className='mr-2' /> },
{ path: '/tasks', label: '换装任务列表', icon: <List className='mr-2' /> },
{ path: '/video-tasks', label: '视频任务列表', icon: <Video className='mr-2' /> },
{ path: '/models', label: '模特维护', icon: <Users className='mr-2' /> },
];

View File

@ -171,7 +171,7 @@ const TryOnTasksPage: React.FC = () => {
</DialogContent>
</Dialog>
<div className='flex justify-between items-center mb-4'>
<h2 className='text-xl font-bold'></h2>
<h2 className='text-xl font-bold'></h2>
<Button onClick={() => setCreateDialogOpen(true)} disabled={!selectedRows.length}>
</Button>
@ -217,7 +217,7 @@ const TryOnTasksPage: React.FC = () => {
}}
/>
) : (
<span className='text-gray-400'></span>
<div className='text-gray-400 w-16 h-16 flex items-center justify-center border rounded'>{item.img_status}</div>
)}
</TableCell>
<TableCell>{item.id}</TableCell>

View File

@ -162,7 +162,7 @@ const TryOnVideoTaskPage: React.FC = () => {
return (
<div className='p-6 overflow-x-auto w-full'>
<h2 className='text-xl font-bold mb-4'></h2>
<h2 className='text-xl font-bold mb-4'></h2>
<div className='mb-6 flex justify-between items-center'>
<Button variant='outline' onClick={() => window.location.reload()}>
@ -215,14 +215,14 @@ const TryOnVideoTaskPage: React.FC = () => {
<img
src={task.img_url}
alt='img'
className='w-16 h-16 object-cover rounded cursor-pointer transition hover:scale-105 inline-block'
className='w-16 h-16 object-cover rounded cursor-pointer transition hover:scale-105'
onClick={() => {
setPreviewImg(task.img_url);
setPreviewImg(task.img_url!);
setDialogOpen(true);
}}
/>
) : (
<span className='text-gray-400'></span>
<div className='text-gray-400 w-16 h-16 flex items-center justify-center border rounded'></div>
)}
</TableCell>
<TableCell>{statusLoading ? '查询中...' : renderStatus(task)}</TableCell>