Skip to content

Commit

Permalink
Merge branch 'develop' into issue/7894
Browse files Browse the repository at this point in the history
  • Loading branch information
Aryanshu919 authored May 29, 2024
2 parents b82a4c5 + 8ae85d6 commit 8b742d3
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 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>;
};
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function MedicineAdministrationTable({
return (
<div className="overflow-x-auto">
<table className="w-full whitespace-nowrap">
<thead className="sticky top-0 z-20 bg-gray-50 text-xs font-medium text-black">
<thead className="sticky top-0 z-10 bg-gray-50 text-xs font-medium text-black">
<tr>
<th className="sticky left-0 z-20 bg-gray-50 py-3 pl-4 text-left">
<div className="flex justify-between gap-2">
Expand All @@ -51,7 +51,7 @@ export default function MedicineAdministrationTable({
disabled={!pagination.hasPrevious}
onClick={pagination.previous}
tooltip="Previous 24 hours"
tooltipClassName="tooltip-bottom -translate-x-1/2 text-xs"
tooltipClassName="tooltip-bottom text-xs"
>
<CareIcon icon="l-angle-left-b" className="text-base" />
</ButtonV2>
Expand Down
18 changes: 9 additions & 9 deletions src/Components/Patient/PatientInfoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ export default function PatientInfoCard(props: {
</>
)}

<section className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3">
<section className="flex flex-col lg:flex-row">
<div
className="col-span-2 flex w-full flex-col bg-white px-4 pt-2 lg:flex-row xl:min-w-fit"
className="flex w-full flex-col bg-white px-4 pt-2 lg:flex-row"
id="patient-infobadges"
>
{/* Can support for patient picture in the future */}
Expand Down Expand Up @@ -269,7 +269,7 @@ export default function PatientInfoCard(props: {
</div>
</div>
</div>
<div className="flex w-full flex-col items-center gap-4 space-y-2 lg:items-start lg:gap-0 lg:pl-2 xl:w-full">
<div className="flex w-full flex-col items-center gap-4 space-y-2 lg:items-start lg:gap-0 lg:pl-2">
<div className="flex flex-col items-center gap-2 sm:flex-row">
<Link
href={`/facility/${consultation?.facility}`}
Expand All @@ -284,7 +284,7 @@ export default function PatientInfoCard(props: {
</Link>

{medicoLegalCase && (
<span className="flex pl-2 capitalize md:col-span-2">
<span className="flex pl-2 capitalize">
<span className="badge badge-pill badge-danger">MLC</span>
</span>
)}
Expand All @@ -301,7 +301,7 @@ export default function PatientInfoCard(props: {
</div>
<div className="flex flex-wrap items-center gap-2 text-sm sm:flex-row">
<div
className="flex flex-wrap items-center justify-center gap-2 text-sm text-gray-900 sm:flex-row sm:text-sm md:pr-10 lg:justify-normal"
className="flex w-full flex-wrap items-center justify-center gap-2 text-sm text-gray-900 sm:flex-row sm:text-sm md:pr-10 lg:justify-normal"
id="patient-consultationbadges"
>
{consultation?.patient_no && (
Expand Down Expand Up @@ -520,12 +520,12 @@ export default function PatientInfoCard(props: {
</div>
</div>
<div
className="col-span-2 flex w-full flex-col items-center justify-end gap-2 px-4 py-1 lg:col-span-1 2xl:flex-row"
className="flex flex-col items-center justify-end gap-4 px-4 py-1 2xl:flex-row"
id="consultation-buttons"
>
{consultation?.suggestion === "A" && (
<div className="flex flex-col items-center">
<div className="col-span-1 flex w-full justify-center bg-white px-4 lg:flex-row">
<div className="flex w-full justify-center bg-white px-4 lg:flex-row">
<div
className={
"flex h-7 w-7 items-center justify-center rounded-full border-2"
Expand All @@ -545,7 +545,7 @@ export default function PatientInfoCard(props: {
</div>
)}
{consultation?.last_daily_round && (
<div className="col-span-1 flex w-full justify-center bg-white px-4 lg:flex-row">
<div className="flex w-full justify-center bg-white px-4 lg:flex-row">
<Mews dailyRound={consultation?.last_daily_round} />
</div>
)}
Expand Down Expand Up @@ -633,7 +633,7 @@ export default function PatientInfoCard(props: {
<DropdownMenu
id="show-more"
itemClassName="min-w-0 sm:min-w-[225px]"
title={"Manage Patient"}
title="Manage Patient"
icon={<CareIcon icon="l-setting" className="text-xl" />}
className="xl:justify-center"
containerClassName="w-full lg:w-auto mt-2 2xl:mt-0 flex justify-center z-20"
Expand Down
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 8b742d3

Please sign in to comment.