From e7042283dc0a709b5e6fc45933e5d712e8d0f3a6 Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Tue, 30 Dec 2025 14:21:23 +0330 Subject: [PATCH] Category responsive --- src/pages/food/Category.tsx | 24 ++++++++-------- src/pages/food/components/CategoryForm.tsx | 32 +++++++++++----------- 2 files changed, 29 insertions(+), 27 deletions(-) diff --git a/src/pages/food/Category.tsx b/src/pages/food/Category.tsx index 32e64aa..37d038e 100644 --- a/src/pages/food/Category.tsx +++ b/src/pages/food/Category.tsx @@ -175,12 +175,12 @@ const CategoryFood: FC = () => { }) return ( -
-
-
-

دسته بندی غذا

+
+
+
+

دسته بندی غذا

-
+
{ />
- +
+
+ = ({ } return ( -
-

{isEditing ? 'ویرایش دسته بندی' : 'اضافه کردن دسته بندی'}

+
+

{isEditing ? 'ویرایش دسته بندی' : 'اضافه کردن دسته بندی'}

-
-
فعال
+
+
فعال
-
+
= ({ />
-
-
آیکون دسته بندی
+
+
آیکون دسته بندی
{selectedIconUrl && ( -
-
+
+
selected icon = ({ />
-
آیکون انتخاب شده
-
+
آیکون انتخاب شده
+
{selectedIconUrl}
@@ -105,7 +105,7 @@ const CategoryForm: FC = ({ onIconUrlChange('') } }} - className="text-gray-400 hover:text-red-500 transition-colors text-xl leading-none flex-shrink-0 w-6 h-6 flex items-center justify-center" + className="text-gray-400 hover:text-red-500 transition-colors text-lg lg:text-xl leading-none flex-shrink-0 w-5 h-5 lg:w-6 lg:h-6 flex items-center justify-center" title="حذف آیکون" > × @@ -124,10 +124,10 @@ const CategoryForm: FC = ({