Skip to content

Commit

Permalink
fixes up/down arrow of numeric inputs not clickable in facility creat…
Browse files Browse the repository at this point in the history
…e and other places (#7931)

* fixes up/down arrow of numeric inputs not clickable in facility create and other places

* fix wight and height
  • Loading branch information
rithviknishad authored May 29, 2024
1 parent 6b75578 commit cf5f1c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Components/Facility/ConsultationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ export const ConsultationForm = ({ facilityId, patientId, id }: Props) => {
placeholder="Weight"
trailingPadding=" "
trailing={
<p className="mr-8 text-sm text-gray-700">
<p className="absolute right-10 whitespace-nowrap text-sm text-gray-700">
Weight (kg)
</p>
}
Expand All @@ -1116,7 +1116,7 @@ export const ConsultationForm = ({ facilityId, patientId, id }: Props) => {
placeholder="Height"
trailingPadding=" "
trailing={
<p className="mr-8 text-sm text-gray-700">
<p className="absolute right-10 whitespace-nowrap text-sm text-gray-700">
Height (cm)
</p>
}
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Facility/FacilityCreate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1001,5 +1001,5 @@ export const FacilityCreate = (props: FacilityProps) => {
};

const FieldUnit = ({ unit }: { unit: string }) => {
return <p className="mr-8 text-xs text-gray-700">{unit}</p>;
return <p className="absolute right-10 text-xs text-gray-700">{unit}</p>;
};
4 changes: 2 additions & 2 deletions src/Components/Patient/PatientRegister.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1345,8 +1345,9 @@ export const PatientRegister = (props: PatientRegisterProps) => {
<TextFormField
{...field("age")}
errorClassName="hidden"
trailingPadding="pr-4"
trailing={
<p className="relative right-4 space-x-1 text-xs text-gray-700 sm:right-14 sm:text-sm md:right-4 lg:right-14">
<p className="absolute right-10 space-x-1 whitespace-nowrap text-xs text-gray-700 sm:text-sm">
{field("age").value !== "" && (
<>
<span className="hidden sm:inline md:hidden lg:inline">
Expand All @@ -1364,7 +1365,6 @@ export const PatientRegister = (props: PatientRegisterProps) => {
</p>
}
placeholder="Enter the age"
className="col-span-6 sm:col-span-3"
type="number"
min={0}
/>
Expand Down

0 comments on commit cf5f1c3

Please sign in to comment.