Skip to content

Commit

Permalink
fix: padding on both sides of the progress bar. also more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pbullhove committed Mar 14, 2024
1 parent 2af538f commit b0dc142
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 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,14 +202,22 @@ export const JobControl = (props: IUIPlugin) => {
</div>
)}
<JobButtonWrapper>
<div className='flex items-center space-x-[1rem]'>
<div className='flex items-center space-x-2'>
{getControlButton(status, remove, start, false, jobIsLoading)}
<div>
<p className='text-sm'>Status:</p>
<div
style={{
width: '100px',
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
}}
>
<p className='text-sm text-center'>Status:</p>
<Chip variant={getVariant(status)} data-testid={'jobStatus'}>
{status ?? 'Not registered'}
</Chip>
</div>

{!internalConfig.hideLogs && <JobLog logs={logs} error={error} />}
</div>

Expand Down Expand Up @@ -256,7 +264,7 @@ export const JobControl = (props: IUIPlugin) => {
</JobButtonWrapper>

{status === JobStatus.Running && progress !== null && (
<div className='ps-2'>
<div className='px-4 pb-2'>
<Progress progress={progress} />
</div>
)}
Expand Down

0 comments on commit b0dc142

Please sign in to comment.