Skip to content

Commit

Permalink
fix styling issues (#6639)
Browse files Browse the repository at this point in the history
  • Loading branch information
AshrafMd-1 authored Nov 21, 2023
1 parent 4827e50 commit 8262237
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/Components/Common/RelativeDateUserMention.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function RelativeDateUserMention(props: {
tooltipPosition?: "top" | "bottom" | "left" | "right";
}) {
return (
<div className="flex flex-row items-center">
<div className="flex flex-row flex-wrap items-center justify-center ">
<div className="tooltip">
<span
className={`tooltip-text tooltip-${props.tooltipPosition || "top"}`}
Expand Down
26 changes: 15 additions & 11 deletions src/Components/Facility/ConsultationCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,21 +112,25 @@ export const ConsultationCard = (props: ConsultationProps) => {
<div className="mt-8 flex flex-col">
{
<div className="flex flex-col items-center text-sm text-gray-700 md:flex-row">
Created:{" "}
Created :{" "}
<div className=" ml-1 text-black">
<RelativeDateUserMention
tooltipPosition="right"
actionDate={itemData.created_date}
user={itemData.created_by}
/>
</div>
</div>
}
<div className="flex flex-col items-center text-sm text-gray-700 md:flex-row">
Last Modified :{" "}
<div className=" ml-1 text-black">
<RelativeDateUserMention
tooltipPosition="right"
actionDate={itemData.created_date}
user={itemData.created_by}
actionDate={itemData.modified_date}
user={itemData.last_edited_by}
/>
</div>
}
<div className="flex flex-col items-center text-sm text-gray-700 md:flex-row">
Last Modified:{" "}
<RelativeDateUserMention
tooltipPosition="right"
actionDate={itemData.modified_date}
user={itemData.last_edited_by}
/>
</div>
</div>
<div className="mt-4 flex w-full flex-col justify-between gap-1 md:flex-row">
Expand Down
6 changes: 3 additions & 3 deletions src/Components/Patient/PatientHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ export const PatientHome = (props: any) => {
</div>
<div className="mt-4 flex items-center">
<ButtonV2
className="w-full"
className="mb-2 w-full"
disabled={!patientData.is_active}
onClick={() =>
navigate(
Expand Down Expand Up @@ -717,7 +717,7 @@ export const PatientHome = (props: any) => {
</div>
</div>
<div className="mt-2 flex justify-between rounded-sm bg-white p-2 px-4 text-center shadow">
<div className="w-1/2 border-r-2 pb-1">
<div className="w-1/2 border-r-2 pb-1 pr-2">
<div className="text-sm font-normal leading-5 text-gray-500">
Created
</div>
Expand All @@ -730,7 +730,7 @@ export const PatientHome = (props: any) => {
</div>
</div>
</div>
<div className="w-1/2 pb-1">
<div className="w-1/2 pb-1 pl-2">
<div className="text-sm font-normal leading-5 text-gray-500">
Last Edited
</div>
Expand Down

0 comments on commit 8262237

Please sign in to comment.