1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-28 01:10:52 +01:00

Revert "Add progressbar when upscaling image (#858)"

This reverts commit 3424b8c481.
This commit is contained in:
NayamAmarshe 2024-06-07 21:13:16 +05:30 committed by GitHub
parent 3424b8c481
commit 9ef93a10e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,14 +27,13 @@ function ProgressBar({
<div className="absolute z-50 flex h-full w-full flex-col items-center justify-center bg-base-300/50 backdrop-blur-lg"> <div className="absolute z-50 flex h-full w-full flex-col items-center justify-center bg-base-300/50 backdrop-blur-lg">
<div className="flex flex-col items-center rounded-btn bg-base-100/50 p-4 backdrop-blur-lg"> <div className="flex flex-col items-center rounded-btn bg-base-100/50 p-4 backdrop-blur-lg">
<Logo className="spinner mb-4 h-12 w-12" /> <Logo className="spinner mb-4 h-12 w-12" />
<p className="rounded-full px-2 pb-2 font-bold flex flex-col items-center"> <p className="rounded-full px-2 pb-2 font-bold">
{batchMode && "Batch Upscale In Progress: " + batchProgress} {batchMode && "Batch Upscale In Progress: " + batchProgress}
{!batchMode && {!batchMode &&
(doubleUpscaylCounter > 0 (doubleUpscaylCounter > 0
? `${progress}\nPass ${doubleUpscaylCounter}` ? `${progress}\nPass ${doubleUpscaylCounter}`
: `${progress}`)} : `${progress}`)}
<progress className='progress w-96 transition-width duration-200 ease-in-out' value={parseFloat(progress.replace("%", ''))} max='100' />
</p> </p>
<p className="animate-pulse rounded-full px-2 pb-3 text-sm font-medium"> <p className="animate-pulse rounded-full px-2 pb-3 text-sm font-medium">