feat(ui): optimize wiki ingredient links, product images, back buttons, and checkout settings
Deploy Canina / deploy (push) Successful in 1m54s

This commit is contained in:
parsa aghaei committed 2026-08-17 14:43:36 +03:30
1 parent 03c6ed58c7
commit 2d83a00169
15 files changed
+550 -396

No files matched your search

+10 -5
View File
@@ -25,13 +25,18 @@ export default function SafeImage({
if (!src || error) {
return (
<div className={cn(
"flex flex-col items-center justify-center bg-medical-gray-50/80 border border-medical-gray-100 p-1.5 text-center w-full h-full rounded-2xl relative overflow-hidden select-none",
"flex flex-col items-center justify-center bg-medical-gray-50/90 border border-medical-gray-100 p-2 text-center w-full h-full rounded-2xl relative overflow-hidden select-none",
className
)}>
<div className="w-8 h-8 sm:w-10 sm:h-10 bg-canina-blue rounded-xl flex items-center justify-center text-white font-black text-base sm:text-lg shadow-sm italic shrink-0">
C
</div>
<span className="text-[8px] font-black text-canina-blue/70 font-vazir leading-tight mt-1 line-clamp-1">
<Image
src="/assets/images/canina-product-placeholder.png"
alt={alt}
width={240}
height={240}
className="max-h-[85%] w-auto object-contain opacity-70"
unoptimized
/>
<span className="text-[9px] font-black text-canina-blue/80 font-vazir leading-tight mt-1 line-clamp-1 bg-white/80 px-2 py-0.5 rounded-md shadow-xs">
{fallbackText}
</span>
</div>