统一详情替换产品图预览样式

This commit is contained in:
Your Name 2026-02-05 20:02:37 +08:00
parent b6ed76758c
commit 4c24001c2f

View File

@ -703,11 +703,11 @@ export function SceneFusionView({ onBack, initialProductImage, initialProductNam
/> />
{(productImagePreview || productImage) ? ( {(productImagePreview || productImage) ? (
<div className="relative aspect-square w-full max-w-[200px] mx-auto"> <div className="relative mx-auto h-48 w-48 rounded-md border bg-muted overflow-hidden">
<img <img
src={productImagePreview || productImage || ""} src={productImagePreview || productImage || ""}
alt="产品图" alt="产品图"
className="w-full h-full object-contain rounded-md" className="w-full h-full object-contain"
onError={handleProductPreviewError} onError={handleProductPreviewError}
/> />
<div className="absolute inset-0 bg-black/40 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center rounded-md"> <div className="absolute inset-0 bg-black/40 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center rounded-md">