+
{
)}
+ {ShowHint &&
{
autoSize={{ minRows: 2, maxRows: 10 }}
showCount={false}
/>
+
+ }
diff --git a/src/Pages/Admin/question/Model/ModelForm.tsx b/src/Pages/Admin/question/Model/ModelForm.tsx
index 6de101f..25d0668 100644
--- a/src/Pages/Admin/question/Model/ModelForm.tsx
+++ b/src/Pages/Admin/question/Model/ModelForm.tsx
@@ -16,7 +16,7 @@ import { toast } from "react-toastify";
const Form = () => {
const [t] = useTranslation();
const formik = useFormikContext
();
- const { setSuccess, Success } = useObjectToEdit();
+ const { setSuccess, Success,ShowHint } = useObjectToEdit();
const handleAddChoice = (fromKeyCombination: boolean = false) => {
formik.setFieldValue("answers", [
@@ -68,7 +68,9 @@ const Form = () => {
)}
+
+ {ShowHint &&
{
autoSize={{ minRows: 2, maxRows: 10 }}
/>
+
+ }
diff --git a/src/Styles/Layout/FilterLayout.scss b/src/Styles/Layout/FilterLayout.scss
index 356d055..b138b96 100644
--- a/src/Styles/Layout/FilterLayout.scss
+++ b/src/Styles/Layout/FilterLayout.scss
@@ -1,7 +1,7 @@
.filter_header {
padding: 20px 20px;
border-radius: 10px 10px 0 0;
- box-shadow: 2px 2px 7px 2px rgba(0, 0, 0, 0.1);
+ box-shadow: 0px 0px 32px 2px #080F3414;
> div {
display: flex;
diff --git a/src/Styles/Pages/exercise.scss b/src/Styles/Pages/exercise.scss
index 12f1087..6ebdd9e 100644
--- a/src/Styles/Pages/exercise.scss
+++ b/src/Styles/Pages/exercise.scss
@@ -133,6 +133,7 @@
.exercise_add_header {
display: flex;
+ gap: 30px;
justify-content: space-between;
width: 100%;
padding: 14px 20px;
@@ -142,6 +143,7 @@
box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, 0.1);
div{
margin-left: 25px;
+ display: flex;
}
img {
cursor: pointer;
@@ -262,4 +264,49 @@
font-weight: bold;
font-size: 19px;
}
+}
+
+
+.Choices{
+ padding-inline: 20px;
+ .textarea_exercise,.hint{
+ width: calc(50vw - 10px) !important;
+ }
+ .ValidationField{
+
+ .text{
+ font-size: 14px;
+ }
+ }
+}
+
+.QuestionFIeld{
+ padding-inline: 10px;
+ .textarea_exercise{
+ width: calc(50vw - 10px) !important;
+
+ }
+
+ .ValidationField{
+ .text{
+ font-size: 17px;
+ }
+ }
+}
+
+.Choices.ChoicesMalty{
+ .textarea_exercise,.hint{
+ width: calc(50vw - 20px) !important;
+ }
+ .ValidationField{
+
+ .text{
+ font-size: 14px;
+ }
+ }
+}
+
+
+.question_header_setting{
+ margin-inline: 40px;
}
\ No newline at end of file
diff --git a/src/translate/ar.json b/src/translate/ar.json
index b8c0203..a92114c 100644
--- a/src/translate/ar.json
+++ b/src/translate/ar.json
@@ -138,7 +138,9 @@
"edit": "تعديل",
"change": "تغيير",
"role_list": "قائمة الأدوار",
- "managers":"مدراء"
+ "managers":"مدراء",
+ "hide_hint":"اخفاء الشرح",
+ "show_hint":"عرض الشرح"
},
"columns": {
"id": "الرقم التعريفي",
diff --git a/src/zustand/ObjectToEditState.ts b/src/zustand/ObjectToEditState.ts
index b0c56c6..76bdd64 100644
--- a/src/zustand/ObjectToEditState.ts
+++ b/src/zustand/ObjectToEditState.ts
@@ -24,6 +24,9 @@ interface ModelState {
SavedQuestionData: any;
setSavedQuestionData: (data: any) => void;
+
+ ShowHint: any;
+ setShowHint: (data: any) => void;
}
export const useObjectToEdit = create((set) => ({
@@ -49,4 +52,6 @@ export const useObjectToEdit = create((set) => ({
setDeletedQuestions: (data) => set(() => ({ DeletedQuestions: data })),
SavedQuestionData: [],
setSavedQuestionData: (data) => set(() => ({ SavedQuestionData: data })),
+ ShowHint: true,
+ setShowHint: (data) => set(() => ({ ShowHint: data })),
}));