Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #160 [C4GT Community]: Reduce text area and increase numerical answer fontsize #165

Merged
merged 3 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/components/Omr/OmrItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@
<!-- input area for the answer -->
<Textarea
v-model:value="numericalAnswer"
class="px-1 w-full"
class="px-1 w-full text-lg"
:boxStyling="numericalAnswerBoxStyling"
placeholder="Only numbers are allowed"
placeholder="Numbers only."
:inputMode="getInputMode"
:isDisabled="isAnswerDisabled"
:maxHeightLimit="250"
:maxHeightLimit="50"
@beforeinput="preventKeypressIfApplicable"
data-test="numericalAnswer"
></Textarea>
Expand Down Expand Up @@ -749,7 +749,7 @@ export default defineComponent({
(isAnswerSubmitted.value && !props.isGradedQuestion) ||
(isQuizAssessment.value && !props.hasQuizEnded),
},
"bp-420:h-12 sm:h-12 md:h-12 px-4 placeholder-gray-400 focus:border-gray-200 focus:ring-primary disabled:cursor-not-allowed",
"h-12 px-4 placeholder-gray-400 focus:border-gray-200 focus:ring-primary disabled:cursor-not-allowed",
]);

state.subjectiveAnswer = defaultSubjectiveAnswer.value;
Expand Down
8 changes: 4 additions & 4 deletions src/components/Questions/Body.vue
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,12 @@
<!-- input area for the answer -->
<Textarea
v-model:value="numericalAnswer"
class="px-2 w-full"
class="px-2 w-full text-base"
:boxStyling="numericalAnswerBoxStyling"
placeholder="Enter your answer here. Only numbers are allowed"
placeholder="Enter your answer here. Numbers only."
:inputMode="getInputMode"
:isDisabled="isAnswerDisabled"
:maxHeightLimit="250"
:maxHeightLimit="50"
@beforeinput="preventKeypressIfApplicable"
data-test="numericalAnswer"
></Textarea>
Expand Down Expand Up @@ -901,7 +901,7 @@ export default defineComponent({
(props.isAnswerSubmitted && !props.isGradedQuestion) ||
(isQuizAssessment.value && !props.hasQuizEnded),
},
"bp-420:h-20 sm:h-28 md:h-36 px-4 placeholder-gray-400 focus:border-gray-200 focus:ring-primary disabled:cursor-not-allowed",
"h-12 px-4 placeholder-gray-400 focus:border-gray-200 focus:ring-primary disabled:cursor-not-allowed",
]);

state.subjectiveAnswer = defaultSubjectiveAnswer.value;
Expand Down
Loading