Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tooltip styling in the patient's dashboard. #6842

Merged
merged 5 commits into from
Dec 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions src/Components/Patient/PatientInfoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,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 @@ -171,6 +166,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
Loading