From 7e6b3fcfe458e4a6e600c4a8d1b0f0692e7f0b80 Mon Sep 17 00:00:00 2001 From: mlogclub Date: Tue, 28 Jul 2026 23:13:22 +0800 Subject: [PATCH] refactor: replace img with next/image for optimized image handling and adjust styles --- web/components/image-input.tsx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/web/components/image-input.tsx b/web/components/image-input.tsx index 6b736ed..11f6be7 100644 --- a/web/components/image-input.tsx +++ b/web/components/image-input.tsx @@ -1,6 +1,7 @@ "use client" import { useRef, useState } from "react" +import Image from "next/image" import { UploadIcon, XIcon } from "lucide-react" import { toast } from "sonner" @@ -111,14 +112,21 @@ export function ImageInput({ > {value ? ( <> - {t("upload.uploadedImage")} + {t("upload.uploadedImage")}
- {t("upload.replaceImage")} + {t("upload.replaceImage")}
) : (
- + {uploading ? t("upload.uploading") : resolvedPlaceholder}
)} @@ -132,7 +140,7 @@ export function ImageInput({