fix design bug

This commit is contained in:
hamid zarghami
2025-12-28 15:23:41 +03:30
parent 434cb99051
commit 0da06994b6
4 changed files with 15 additions and 8 deletions
+2 -2
View File
@@ -120,9 +120,9 @@ const CartIndex = () => {
</div>
<Button
onClick={() => setShowPagerModal(true)}
className='w-full flex items-center justify-center gap-2'
className='w-full dark:bg-white! dark:text-black! flex items-center justify-center gap-2'
>
<NotificationBellIcon width={18} height={18} className="text-white dark:text-foreground" />
<NotificationBellIcon width={18} height={18} className="text-white dark:text-black!" />
<span>صدا کردن گارسون</span>
</Button>
</div>
@@ -123,7 +123,7 @@ const MenuFilterDrawer = ({
<hr className="text-white/40 mt-12" />
<div className="px-9 pt-6 flex justify-between gap-[22px]">
<div className="w-full">
<Button onClick={handleApply}>{tMenu("MenuFilterDrawer.ButtonOk")}</Button>
<Button className="dark:bg-white! dark:text-black!" onClick={handleApply}>{tMenu("MenuFilterDrawer.ButtonOk")}</Button>
</div>
<div className="w-full">
<Button className="bg-disabled! text-disabled-text!" onClick={handleCancel}>
+11 -4
View File
@@ -115,10 +115,17 @@ const MenuIndex = () => {
!search || itemName.toLowerCase().includes(lowerSearch);
const matchesIngredients = !selectedIngredients ||
(item.content && Array.isArray(item.content) &&
item.content.some((content: string) =>
content.toLowerCase().includes(lowerIngredients)
));
(() => {
// ابتدا در محتویات جستجو می‌کنیم
if (item.content && Array.isArray(item.content) && item.content.length > 0) {
return item.content.some((content: string) =>
content.toLowerCase().includes(lowerIngredients)
);
}
// اگر محتویات وجود نداشت یا خالی بود، در توضیحات جستجو می‌کنیم
const description = item.description || item.desc || "";
return description.toLowerCase().includes(lowerIngredients);
})();
const matchesDelivery = selectedDeliveryId === "0" ||
(selectedDeliveryId === "pickup" && item.pickupServe) ||