Skip to content

Commit

Permalink
refactor: Update tooltip position and rotation in PatientNotesSlideov…
Browse files Browse the repository at this point in the history
…er component
  • Loading branch information
shauryag2002 committed Oct 30, 2024
1 parent fb06e6c commit 39bef8a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/Facility/PatientNotesSlideover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ export default function PatientNotesSlideover(props: PatientNotesProps) {
className="tooltip text-lg transition-all delay-150 duration-300 ease-out"
/>
<span
className={`tooltip-text tooltip-${show ? "bottom -translate-x-16" : "top"} text-xs`}
className={classNames(
"tooltip-text text-xs",
show ? "tooltip-bottom -translate-x-16" : "tooltip-top",
)}
>
{t("minimize")}
</span>
Expand All @@ -175,7 +178,10 @@ export default function PatientNotesSlideover(props: PatientNotesProps) {
className="tooltip text-lg transition-all delay-150 duration-300 ease-out"
/>
<span
className={`tooltip-text tooltip-${show ? "bottom -translate-x-11" : "top"} text-xs`}
className={classNames(
"tooltip-text text-xs",
show ? "tooltip-bottom -translate-x-11" : "tooltip-top",
)}
>
{t("close")}
</span>
Expand Down

0 comments on commit 39bef8a

Please sign in to comment.