diff --git a/src/index.css b/src/index.css index 94ffc5b..69c3848 100644 --- a/src/index.css +++ b/src/index.css @@ -160,3 +160,14 @@ tbody tr { *::-webkit-scrollbar { display: none; } + +.ql-container { + min-height: 200px !important; /* حداقل ارتفاع برای نمایش کامل ادیتور */ + max-height: 500px; /* حداکثر ارتفاع */ + overflow-y: auto; /* فعال کردن اسکرول در صورت نیاز */ +} + +.ql-toolbar { + position: relative !important; /* حل مشکل نمایش نوار ابزار */ + z-index: 10; +} diff --git a/src/pages/service/AddService.tsx b/src/pages/service/AddService.tsx index 9d28f98..0fad94c 100644 --- a/src/pages/service/AddService.tsx +++ b/src/pages/service/AddService.tsx @@ -17,6 +17,7 @@ import { toast } from 'react-toastify'; import { useNavigate } from 'react-router-dom'; import { Pages } from '../../config/Pages'; + const AddService: FC = () => { const navigate = useNavigate() @@ -232,6 +233,7 @@ const AddService: FC = () => {
+ diff --git a/src/pages/service/Plans.tsx b/src/pages/service/Plans.tsx index 5748051..965c504 100644 --- a/src/pages/service/Plans.tsx +++ b/src/pages/service/Plans.tsx @@ -8,6 +8,7 @@ import Td from '../../components/Td' import { PlanItemType } from './types/ServiceTypes' import ToggleStatusPlan from './components/ToggleStatusPlan' import EditPlan from './components/EditPlan' +import { NumberFormat } from '../../config/func' const Plans: FC = () => { @@ -46,7 +47,7 @@ const Plans: FC = () => { - + diff --git a/src/pages/service/components/CreatePlan.tsx b/src/pages/service/components/CreatePlan.tsx index ae7d762..e8fe6f4 100644 --- a/src/pages/service/components/CreatePlan.tsx +++ b/src/pages/service/components/CreatePlan.tsx @@ -115,6 +115,7 @@ const CreatePlan: FC = () => { className='bg-description bg-opacity-15 border-none' value={item.price} readOnly + seprator /> { className='bg-white bg-opacity-30' name='price' value={formik.values.price} - onChange={formik.handleChange} + onChange={(e) => formik.setFieldValue('price', e.target.value)} error_text={formik.touched.price && formik.errors.price ? formik.errors.price : ''} + seprator />
formik.handleSubmit()} className='size-10 min-w-10 mt-7 rounded-xl border border-black flex justify-center items-center'> diff --git a/src/pages/service/components/EditPlan.tsx b/src/pages/service/components/EditPlan.tsx index e28b2c0..65d2fab 100644 --- a/src/pages/service/components/EditPlan.tsx +++ b/src/pages/service/components/EditPlan.tsx @@ -113,8 +113,9 @@ const EditPlan: FC = (props: Props) => { className='bg-white bg-opacity-30' name='price' value={formik.values.price} - onChange={formik.handleChange} + onChange={(e) => formik.setFieldValue('price', e.target.value)} error_text={formik.touched.price && formik.errors.price ? formik.errors.price : ''} + seprator />