Skip to content

Commit

Permalink
Make header in patient dashboard more responsive. Fixes #6488 (#6515)
Browse files Browse the repository at this point in the history
  • Loading branch information
Omkar76 authored Oct 31, 2023
1 parent 343ff7e commit b43f8d5
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions src/Components/Facility/ConsultationDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export const ConsultationDetails = (props: any) => {
/>

<div className="px-2 pb-2">
<nav className="relative flex flex-wrap justify-between">
<nav className="relative flex flex-wrap items-start justify-between">
<PageTitle
title="Patient Dashboard"
className="sm:m-0 sm:p-0"
Expand All @@ -290,9 +290,9 @@ export const ConsultationDetails = (props: any) => {
breadcrumbs={true}
backUrl="/patients"
/>
<div className="-right-6 top-0 flex w-full flex-col space-y-1 sm:w-min sm:flex-row sm:items-center sm:space-y-0 sm:divide-x-2 lg:absolute xl:right-0">
<div className="flex w-full flex-col min-[1150px]:w-min min-[1150px]:flex-row min-[1150px]:items-center">
{!consultationData.discharge_date && (
<div className="flex w-full flex-col px-2 sm:flex-row">
<>
{hasActiveShiftingRequest() ? (
<ButtonV2
onClick={() =>
Expand All @@ -302,7 +302,7 @@ export const ConsultationDetails = (props: any) => {
}`
)
}
className="btn btn-primary m-1 w-full hover:text-white"
className="btn btn-primary mx-1 w-full p-1.5 px-4 hover:text-white"
>
<CareIcon className="care-l-ambulance h-5 w-5" />
Track Shifting
Expand All @@ -315,7 +315,7 @@ export const ConsultationDetails = (props: any) => {
`/facility/${patientData.facility}/patient/${patientData.id}/shift/new`
)
}
className="btn btn-primary m-1 w-full hover:text-white"
className="btn btn-primary mx-1 w-full p-1.5 px-4 hover:text-white"
>
<CareIcon className="care-l-ambulance h-5 w-5" />
Shift Patient
Expand Down Expand Up @@ -343,23 +343,21 @@ export const ConsultationDetails = (props: any) => {
Camera Feed
</Link>
)}
</div>
</>
)}
<div className="flex w-full flex-col px-2 sm:flex-row">
<Link
href={`/facility/${patientData.facility}/patient/${patientData.id}`}
className="btn btn-primary m-1 w-full hover:text-white"
>
Patient Details
</Link>
<Link
id="patient_doctor_notes"
href={`/facility/${patientData.facility}/patient/${patientData.id}/notes`}
className="btn btn-primary m-1 w-full hover:text-white"
>
Doctor&apos;s Notes
</Link>
</div>
<Link
href={`/facility/${patientData.facility}/patient/${patientData.id}`}
className="btn btn-primary m-1 w-full hover:text-white"
>
Patient Details
</Link>
<Link
id="patient_doctor_notes"
href={`/facility/${patientData.facility}/patient/${patientData.id}/notes`}
className="btn btn-primary m-1 w-full hover:text-white"
>
Doctor&apos;s Notes
</Link>
</div>
</nav>
<div className="mt-2 flex w-full flex-col md:flex-row">
Expand Down

0 comments on commit b43f8d5

Please sign in to comment.