Skip to content

Commit

Permalink
fix(backup): small fixes for backups in creation
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Aug 20, 2024
1 parent 5e7564f commit 422f9f8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions resources/scripts/components/server/backups/BackupRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,21 @@ export default ({ backup }: Props) => {
<p className='break-words truncate text-lg'>{backup.name}</p>
</div>
</div>
<p className={`mt-1 md:mt-0 text-xs text-zinc-400 font-mono truncate`}>
{backup.checksum && (<p className={`mt-1 md:mt-0 text-xs text-zinc-400 font-mono truncate`}>
{backup.checksum}
</p>
</p>)}
</div>
</div>
</div>
</div>

<div className='flex flex-row justify-center font-medium sm:justify-between min-w-full sm:w-96 sm:min-w-40'>
{backup.completedAt !== null && backup.isSuccessful && (
<span className={`text-xs sm:flex-initial sm:ml-0`}>{bytesToString(backup.bytes)}</span>
)}
<p className={`text-xs inline sm:hidden`}>,&nbsp;</p>
<>
<span className={`text-xs sm:flex-initial sm:ml-0`}>{bytesToString(backup.bytes)}</span>
<p className={`text-xs inline sm:hidden`}>,&nbsp;</p>
</>
)}
<p
title={format(backup.createdAt, 'ddd, MMMM do, yyyy HH:mm:ss')}
className={`text-xs sm:flex-initial`}
Expand Down

0 comments on commit 422f9f8

Please sign in to comment.