fix(ui): refine mobile product details alignment, search overlay, remove full page loading, toast close button and dosage calculator layout

This commit is contained in:
parsa aghaei committed 2026-07-22 15:16:00 +03:30
1 parent 19c86c9955
commit 1c93aec1c9
4 files changed
+66 -54

No files matched your search

+2 -12
View File
@@ -35,17 +35,7 @@ export default function ClientLayout({ children }: { children: React.ReactNode }
}
}, [fetchProfile, fetchSettings]);
if (!isInitialized) {
return (
<div className="min-h-screen bg-medical-gray-50 flex flex-col items-center justify-center font-sans" dir="rtl">
<div className="flex flex-col items-center gap-4 text-center">
<div className="w-12 h-12 border-4 border-canina-blue border-t-transparent rounded-full animate-spin" />
<h2 className="text-xl font-black text-medical-gray-900 font-lalezar tracking-wide">در حال بارگذاری اطلاعات سایت...</h2>
<p className="text-sm text-medical-gray-500 font-shabnam">لطفاً شکیبا باشید</p>
</div>
</div>
);
}
// Remove full-page blocking screen to allow immediate render
// Derived currentView from pathname for Header
let currentView = "home";
@@ -114,7 +104,7 @@ export default function ClientLayout({ children }: { children: React.ReactNode }
petName={advisorData?.name}
isAdvisorContext={!!advisorData}
/>
<Toaster position="top-center" expand={true} richColors />
<Toaster position="top-center" expand={true} richColors closeButton />
</>
);
}