+ {symptoms.length === 0 ? (
+
در حال بارگذاری...
+ ) : symptoms.map(s => (
diff --git a/frontend/application/components/Header.tsx b/frontend/application/components/Header.tsx
index d38bd16..1094ab3 100644
--- a/frontend/application/components/Header.tsx
+++ b/frontend/application/components/Header.tsx
@@ -154,33 +154,45 @@ export default function Header({
initial={{ opacity: 0, y: 15, scale: 0.98 }}
animate={{ opacity: 1, y: 0, scale: 1 }}
exit={{ opacity: 0, y: 15, scale: 0.98 }}
- className="absolute top-[80%] right-0 w-[640px] bg-white border border-medical-gray-100 shadow-2xl rounded-[2.5rem] p-10 grid grid-cols-2 gap-10 z-50 pointer-events-auto"
+ className="absolute top-[80%] right-0 w-[680px] bg-white border border-medical-gray-100 shadow-2xl rounded-[2.5rem] p-8 grid grid-cols-2 gap-8 z-50 pointer-events-auto"
>
{menuItems.map((item, idx) => (
setIsMegaMenuOpen(false)}
- className="flex items-center gap-4 mb-4 cursor-pointer block"
+ className="flex items-center gap-3 mb-4 cursor-pointer block"
>
-
+
{item.icon}
-
{item.title}
+
{item.title}
-
- {item.solutions.map((sol, sIdx) => (
- -
+ {item.solutions.length > 0 ? (
+
+ {item.solutions.slice(0, 8).map((sol, sIdx) => (
setIsMegaMenuOpen(false)}
>
{sol}
-
- ))}
-
+ ))}
+ {item.solutions.length > 8 && (
+ setIsMegaMenuOpen(false)}
+ >
+ +{item.solutions.length - 8} بیشتر
+
+ )}
+
+ ) : (
+ مشاهده همه محصولات
+ )}
))}
diff --git a/frontend/application/components/ProductPage.tsx b/frontend/application/components/ProductPage.tsx
index b45c832..7734c85 100644
--- a/frontend/application/components/ProductPage.tsx
+++ b/frontend/application/components/ProductPage.tsx
@@ -267,6 +267,30 @@ export default function ProductPage({ productSlug }: { productSlug: string }) {