1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-09-24 11:28:25 +02:00

make all format buttons normal

This commit is contained in:
Aaron Liu 2023-09-10 15:20:28 -04:00 committed by GitHub
parent e03e336734
commit 62dd93b921
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,24 +28,24 @@ export function ImageFormatSelect({
<div className="flex flex-wrap gap-2">
{/* PNG */}
<button
className={`btn-primary btn ${
saveImageAs === "png" && "btn-accent ring-2 ring-primary"
className={`btn ${
saveImageAs === "png" && "btn-primary"
}`}
onClick={() => setExportType("png")}>
PNG
</button>
{/* JPG */}
<button
className={`btn-primary btn ${
saveImageAs === "jpg" && "btn-accent !ring-2 !ring-primary"
className={`btn ${
saveImageAs === "jpg" && "btn-primary"
}`}
onClick={() => setExportType("jpg")}>
JPG
</button>
{/* WEBP
<button
className={`btn-primary btn ${
saveImageAs === "webp" && "btn-accent"
className={`btn ${
saveImageAs === "webp" && "btn-primary"
}`}
onClick={() => setExportType("webp")}>
WEBP