Skip to content

Commit

Permalink
fixed spacing and overflowing text in patient detail page (#5878)
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijv256 authored Jul 21, 2023
1 parent c9bb94a commit 5a45c03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Components/Facility/ConsultationCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export const ConsultationCard = (props: ConsultationProps) => {
</div>
<div className="mt-4 flex flex-col gap-1 md:flex-row justify-between w-full">
<ButtonV2
className="bg-white hover:bg-gray-300 border border-gray-500 text-black"
className="bg-white hover:bg-gray-300 border border-gray-500 text-black whitespace-pre-wrap h-auto"
onClick={() =>
navigate(
`/facility/${itemData.facility}/patient/${itemData.patient}/consultation/${itemData.id}`
Expand All @@ -131,7 +131,7 @@ export const ConsultationCard = (props: ConsultationProps) => {
View Consultation / Consultation Updates
</ButtonV2>
<ButtonV2
className="bg-white hover:bg-gray-300 border border-gray-500 text-black"
className="bg-white hover:bg-gray-300 border border-gray-500 text-black whitespace-pre-wrap h-auto"
onClick={() =>
navigate(
`/facility/${itemData.facility}/patient/${itemData.patient}/consultation/${itemData.id}/files/`
Expand All @@ -142,7 +142,7 @@ export const ConsultationCard = (props: ConsultationProps) => {
</ButtonV2>
{isLastConsultation && (
<ButtonV2
className="bg-white hover:bg-gray-300 border border-gray-500 text-black"
className="bg-white hover:bg-gray-300 border border-gray-500 text-black whitespace-pre-wrap h-auto"
onClick={() =>
navigate(
`/facility/${itemData.facility}/patient/${itemData.patient}/consultation/${itemData.id}/daily-rounds`
Expand Down
4 changes: 2 additions & 2 deletions src/Components/Patient/PatientHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -466,11 +466,11 @@ export const PatientHome = (props: any) => {
<div className="lg:w-2/3 mx-2">
<div className="bg-white rounded-lg shadow flex flex-col justify-between pt-11 pb-5 pl-9 h-full">
<div>
<div className="flex flex-row">
<div className="flex flex-row gap-4">
<h1 className="font-bold text-2xl pb-3 flex flex-row">
{patientData.name} - {patientData.age}
</h1>
<div className="flex flex-wrap gap-2 ml-auto mr-9">
<div className="flex flex-wrap gap-3 ml-auto mr-9">
{patientData.is_vaccinated ? (
<Chip
color="blue"
Expand Down

0 comments on commit 5a45c03

Please sign in to comment.