统一详情替换产品图预览样式
This commit is contained in:
parent
b6ed76758c
commit
4c24001c2f
@ -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">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user