Skip to content

Commit

Permalink
fix(frontend): update samples style
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-Shen committed Oct 30, 2024
1 parent 412aedc commit 7dd55b0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/frontend/src/pages/tasks.[id]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ const Samples = () => {
title: '',
dataIndex: 'option',
key: 'option',
width: 100,
width: 140,
align: 'center',
fixed: 'right',
render: (x, record) => {
Expand All @@ -256,7 +256,7 @@ const Samples = () => {

if (record.file?.filename?.endsWith('.jsonl')) {
return (
<div>
<FlexLayout items="center">
<Button type="link" onClick={() => downloadFromUrl(record.file.url, record.file?.filename)}>
下载
</Button>
Expand All @@ -265,12 +265,12 @@ const Samples = () => {
删除
</Button>
</Popconfirm>
</div>
</FlexLayout>
);
}

return (
<>
<FlexLayout items="center" gap="0.5rem">
{isTaskReadyToAnnotate && (
<Link to={`/tasks/${taskId}/samples/${record.id}`}>
<Button type="link">进入标注</Button>
Expand All @@ -281,7 +281,7 @@ const Samples = () => {
删除
</Button>
</Popconfirm>
</>
</FlexLayout>
);
},
},
Expand Down

0 comments on commit 7dd55b0

Please sign in to comment.