1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-23 23:21:05 +01:00

added completion text for batch mode

This commit is contained in:
TGS963 2022-09-18 19:14:54 +05:30
parent 8aec99bc78
commit 55a8389593

View File

@ -270,39 +270,44 @@ const Home = () => {
{imagePath.length === 0 && batchFolderPath.length === 0 ? (
<RightPaneInfo version={version} />
) : upscaledImagePath.length === 0 ? (
<img
className="h-full w-full object-contain"
src={
"file://" + `${upscaledImagePath ? upscaledImagePath : imagePath}`
}
draggable="false"
alt=""
/>
) : !batchMode ? (
<ReactCompareSlider
itemOne={
<ReactCompareSliderImage
src={"file://" + imagePath}
alt="Original"
style={{
objectFit: "contain",
}}
/>
}
itemTwo={
<ReactCompareSliderImage
src={"file://" + upscaledImagePath}
alt="Upscayl"
style={{
objectFit: "contain",
}}
/>
}
className="h-screen"
/>
upscaledImagePath.length === 0 ? (
<img
className="h-full w-full object-contain"
src={
"file://" +
`${upscaledImagePath ? upscaledImagePath : imagePath}`
}
draggable="false"
alt=""
/>
) : (
<ReactCompareSlider
itemOne={
<ReactCompareSliderImage
src={"file://" + imagePath}
alt="Original"
style={{
objectFit: "contain",
}}
/>
}
itemTwo={
<ReactCompareSliderImage
src={"file://" + upscaledImagePath}
alt="Upscayl"
style={{
objectFit: "contain",
}}
/>
}
className="h-screen"
/>
)
) : (
<h1>DONEEEEEEEEEEEEEEE</h1>
<p className="select-none font-bold text-neutral-50">
Finished Upscaling Folder!
</p>
)}
</div>
</div>