diff --git a/src/components/image-converter.tsx b/src/components/image-converter.tsx index 1ace19b..d5ad972 100644 --- a/src/components/image-converter.tsx +++ b/src/components/image-converter.tsx @@ -24,6 +24,12 @@ import { Upload, Download, X, Trash2 } from "lucide-react"; import { toast } from "sonner"; import { cn } from "@/lib/utils"; import { Switch } from "@/components/ui/switch"; +import { + Accordion, + AccordionContent, + AccordionItem, + AccordionTrigger, +} from "@/components/ui/accordion"; export function ImageConverter() { const [images, setImages] = useState([]); @@ -35,7 +41,7 @@ export function ImageConverter() { const [prefix, setPrefix] = useState(""); const [suffix, setSuffix] = useState(""); - const [useCounter, setUseCounter] = useState(true); + const [useCounter, setUseCounter] = useState(false); const [counterDigits, setCounterDigits] = useState(3); const [isConverting, setIsConverting] = useState(false); @@ -189,80 +195,94 @@ export function ImageConverter() { return (
-
- - - Image Settings - - Adjust resolution and format for all uploaded images. - - - -
-
- - setWidth(e.target.value)} disabled={!hasImages} /> -
-
- - setHeight(e.target.value)} disabled={!hasImages} /> -
-
-
- - -
-
- - - - -
+
+ + + + +
+ Image Settings + + Adjust resolution and format for all uploaded images. + +
+
+ +
+
+
+ + setWidth(e.target.value)} disabled={!hasImages} /> +
+
+ + setHeight(e.target.value)} disabled={!hasImages} /> +
+
+
+ + +
+
+ + + + +
+
+
- - - Filename Settings - Customize the output filenames. - - -
- - setPrefix(e.target.value)} disabled={!hasImages} /> -
-
- - setSuffix(e.target.value)} disabled={!hasImages} /> -
-
- - -
- {useCounter && ( -
- - -
- )} -
-
+ + + +
+ Filename Settings + Customize the output filenames. +
+
+ +
+
+ + setPrefix(e.target.value)} disabled={!hasImages} /> +
+
+ + setSuffix(e.target.value)} disabled={!hasImages} /> +
+
+ + +
+ {useCounter && ( +
+ + +
+ )} +
+
+
+
+