Skip to content

Commit

Permalink
change tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
AshrafMd-1 committed Dec 11, 2023
1 parent 896f51b commit 8e94892
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/Components/Patient/PatientInfoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,7 @@ export default function PatientInfoCard(props: {
>
{consultation?.current_bed &&
consultation?.discharge_date === null ? (
<div
className="flex h-full flex-col items-center justify-center"
title={`
${consultation?.current_bed?.bed_object?.location_object?.name}\n${consultation?.current_bed?.bed_object.name}
`}
>
<div className="tooltip flex h-full flex-col items-center justify-center">
<p className="w-full truncate px-2 text-center text-sm text-gray-900">
{
consultation?.current_bed?.bed_object?.location_object
Expand All @@ -169,6 +164,15 @@ export default function PatientInfoCard(props: {
<p className="w-full truncate px-2 text-center text-base font-bold">
{consultation?.current_bed?.bed_object.name}
</p>
<div className="tooltip-text tooltip-right flex -translate-x-1/3 translate-y-1/2 flex-col items-center justify-center text-sm ">
<span>
{
consultation?.current_bed?.bed_object?.location_object
?.name
}
</span>
<span>{consultation?.current_bed?.bed_object.name}</span>
</div>
</div>
) : (
<div className="flex h-full items-center justify-center">
Expand Down

0 comments on commit 8e94892

Please sign in to comment.