Skip to content

Commit

Permalink
fix: more job control ui
Browse files Browse the repository at this point in the history
  • Loading branch information
pbullhove committed Mar 14, 2024
1 parent 15b2945 commit 06795ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 6 additions & 4 deletions packages/dm-core-plugins/src/job/JobControl/JobControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export const JobControl = (props: IUIPlugin) => {
</div>
)}
<JobButtonWrapper>
<div className='flex items-center space-x-2'>
<div className='flex items-center space-x-[1rem]'>
{getControlButton(status, remove, start, false, jobIsLoading)}
<div>
<p className='text-sm'>Status:</p>
Expand Down Expand Up @@ -254,9 +254,11 @@ export const JobControl = (props: IUIPlugin) => {
</div>
)}
</JobButtonWrapper>
{status === JobStatus.Running && progress !== null && (
<Progress progress={progress} />
)}
<div className='p-2'>
{status === JobStatus.Running && progress !== null && (
<Progress progress={progress} />
)}
</div>
</div>
</div>
</div>
Expand Down
1 change: 0 additions & 1 deletion packages/dm-core-plugins/src/job/common.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ export const Progress = (props: { progress: number }) => {
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
width: '50%',
}}
>
<LinearProgress
Expand Down

0 comments on commit 06795ad

Please sign in to comment.